summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCXXCast.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-26 21:25:24 +0000
committerDan Gohman <gohman@apple.com>2010-07-26 21:25:24 +0000
commit28ade550f4c6e93bbb0eeec5f1f47efb3e2591ca (patch)
tree7e8f836f508fb7a3c82e294cbdb434e038c1f4a6 /clang/lib/Sema/SemaCXXCast.cpp
parenta8b949883ed352b9b0851dbb7b39b8be05530ffe (diff)
downloadbcm5719-llvm-28ade550f4c6e93bbb0eeec5f1f47efb3e2591ca.tar.gz
bcm5719-llvm-28ade550f4c6e93bbb0eeec5f1f47efb3e2591ca.zip
Fix namespace polution.
llvm-svn: 109440
Diffstat (limited to 'clang/lib/Sema/SemaCXXCast.cpp')
-rw-r--r--clang/lib/Sema/SemaCXXCast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCXXCast.cpp b/clang/lib/Sema/SemaCXXCast.cpp
index 787bd00ac81..29e9051082d 100644
--- a/clang/lib/Sema/SemaCXXCast.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud