diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-26 21:25:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-26 21:25:24 +0000 |
commit | 3c46e8db99196179b30e7ac5c20c4efd5f3926d7 (patch) | |
tree | 2ef91bba064f8fe40b467e2dd0134f08eef99a5c /lib/Sema/SemaCXXCast.cpp | |
parent | 1890eb81a6ad9df6dee4d54d5031e1ea5c6e9ce7 (diff) |
Fix namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCXXCast.cpp')
-rw-r--r-- | lib/Sema/SemaCXXCast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaCXXCast.cpp b/lib/Sema/SemaCXXCast.cpp index 787bd00ac8..29e9051082 100644 --- a/lib/Sema/SemaCXXCast.cpp +++ b/lib/Sema/SemaCXXCast.cpp @@ -197,7 +197,7 @@ Sema::BuildCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind, /// the same kind of pointer (plain or to-member). Unlike the Sema function, /// this one doesn't care if the two pointers-to-member don't point into the /// same class. This is because CastsAwayConstness doesn't care. -bool UnwrapDissimilarPointerTypes(QualType& T1, QualType& T2) { +static bool UnwrapDissimilarPointerTypes(QualType& T1, QualType& T2) { const PointerType *T1PtrType = T1->getAs<PointerType>(), *T2PtrType = T2->getAs<PointerType>(); if (T1PtrType && T2PtrType) { |