summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/CastToStructChecker.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-26 21:31:17 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-26 21:31:17 +0000
commit8385a069290100fad3aed65f12fc3f79a4d2b9f3 (patch)
tree1f6b559ebf7eee31191ad333363f5cfc88613ae8 /clang/lib/Checker/CastToStructChecker.cpp
parent5d284ae8a0c6d01880a264a3dad8c29dac72bfba (diff)
downloadbcm5719-llvm-8385a069290100fad3aed65f12fc3f79a4d2b9f3.tar.gz
bcm5719-llvm-8385a069290100fad3aed65f12fc3f79a4d2b9f3.zip
Introduce Type::isStructureOrClassType(), which does the obvious
thing. Audit all uses of Type::isStructure(), changing those calls to isStructureOrClassType() as needed (which is alsmost everywhere). Fixes the remaining failure in Boost.Utility/Swap. llvm-svn: 102386
Diffstat (limited to 'clang/lib/Checker/CastToStructChecker.cpp')
-rw-r--r--clang/lib/Checker/CastToStructChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/CastToStructChecker.cpp b/clang/lib/Checker/CastToStructChecker.cpp
index 2c16f890581..eeaed970b53 100644
--- a/clang/lib/Checker/CastToStructChecker.cpp
+++ b/clang/lib/Checker/CastToStructChecker.cpp
@@ -51,7 +51,7 @@ void CastToStructChecker::PreVisitCastExpr(CheckerContext &C,
QualType OrigPointeeTy = OrigPTy->getPointeeType();
QualType ToPointeeTy = ToPTy->getPointeeType();
- if (!ToPointeeTy->isStructureType())
+ if (!ToPointeeTy->isStructureOrClassType())
return;
// We allow cast from void*.
OpenPOWER on IntegriCloud