]> granicus.if.org Git - clang/commitdiff
[analyzer] Teach Environment to not look through MaterializeTemporaryExprs.
authorTed Kremenek <kremenek@apple.com>
Thu, 28 Jul 2011 23:07:41 +0000 (23:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 28 Jul 2011 23:07:41 +0000 (23:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136414 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/Environment.cpp

index 4af8bb07cc9f8aa4bf504243935c784d03a39e9a..4a2d33d8d325b503ebfc66494402e24674d4e0b1 100644 (file)
@@ -83,9 +83,6 @@ SVal Environment::getSVal(const Stmt *E, SValBuilder& svalBuilder,
       case Stmt::CXXBindTemporaryExprClass:
         E = cast<CXXBindTemporaryExpr>(E)->getSubExpr();
         continue;
-      case Stmt::MaterializeTemporaryExprClass:
-        E = cast<MaterializeTemporaryExpr>(E)->GetTemporaryExpr();
-        continue;
       // Handle all other Stmt* using a lookup.
       default:
         break;