diff options
author | John McCall <rjmccall@apple.com> | 2010-03-30 23:58:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-03-30 23:58:03 +0000 |
commit | 23cba801e11b03929c44f8cf54578305963a3476 (patch) | |
tree | 7a1edfa728d0b5e9f0a9732d0faaec43ad2aa242 /lib/Checker | |
parent | 658f679b63cf92204d707c5dfc1251ae8f3c0762 (diff) |
Introduce a new kind of derived-to-base cast which bypasses the need for
null checks, and make sure we elide null checks when accessing base class
members.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker')
-rw-r--r-- | lib/Checker/GRExprEngine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index 1afe0917f1..04f8cc6142 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -2306,6 +2306,7 @@ void GRExprEngine::VisitCast(CastExpr *CastE, Expr *Ex, ExplodedNode *Pred, case CastExpr::CK_AnyPointerToObjCPointerCast: case CastExpr::CK_AnyPointerToBlockPointerCast: case CastExpr::CK_DerivedToBase: + case CastExpr::CK_UncheckedDerivedToBase: // Delegate to SValuator to process. for (ExplodedNodeSet::iterator I = S2.begin(), E = S2.end(); I != E; ++I) { ExplodedNode* N = *I; |