aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CastToStructChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/CastToStructChecker.cpp')
-rw-r--r--lib/Analysis/CastToStructChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/CastToStructChecker.cpp b/lib/Analysis/CastToStructChecker.cpp
index 5d0110e4eb..bda8ff47bf 100644
--- a/lib/Analysis/CastToStructChecker.cpp
+++ b/lib/Analysis/CastToStructChecker.cpp
@@ -50,7 +50,7 @@ void CastToStructChecker::PreVisitCastExpr(CheckerContext &C,
QualType OrigPointeeTy = OrigPTy->getPointeeType();
QualType ToPointeeTy = ToPTy->getPointeeType();
- if (!ToPointeeTy->isRecordType())
+ if (!ToPointeeTy->isStructureType())
return;
// We allow cast from void*.