]> granicus.if.org Git - clang/commitdiff
Teach the analyzer to just ignore CXXBindTemporaryExpr. There's nothing special...
authorTed Kremenek <kremenek@apple.com>
Thu, 1 Mar 2012 23:06:04 +0000 (23:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 1 Mar 2012 23:06:04 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151856 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngine.cpp

index ffc0916ed1e7e5ebb9cc9d4acf89956bfed2b79a..0a72f013efa22c7ac71e3ffe1457796b10dc7456 100644 (file)
@@ -480,7 +480,6 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
   switch (S->getStmtClass()) {
     // C++ and ARC stuff we don't support yet.
     case Expr::ObjCIndirectCopyRestoreExprClass:
-    case Stmt::CXXBindTemporaryExprClass:
     case Stmt::CXXCatchStmtClass:
     case Stmt::CXXDependentScopeMemberExprClass:
     case Stmt::CXXPseudoDestructorExprClass:
@@ -607,6 +606,7 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
     case Stmt::SizeOfPackExprClass:
     case Stmt::StringLiteralClass:
     case Stmt::ObjCStringLiteralClass:
+    case Stmt::CXXBindTemporaryExprClass:
     case Stmt::CXXNullPtrLiteralExprClass: {
       Bldr.takeNodes(Pred);
       ExplodedNodeSet preVisit;