]> granicus.if.org Git - clang/commitdiff
Revert 65707 (causes stack memory to be referenced after it is released).
authorTed Kremenek <kremenek@apple.com>
Sat, 28 Feb 2009 20:50:43 +0000 (20:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 28 Feb 2009 20:50:43 +0000 (20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65717 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 0bec1b45db746c527ab5cbc4d59b3b382d04e3fd..916340d1750c86ba91de6e724c67ece7895225d5 100644 (file)
@@ -1357,10 +1357,10 @@ void GRExprEngine::VisitCallRec(CallExpr* CE, NodeTy* Pred,
 // Transfer function: Objective-C ivar references.
 //===----------------------------------------------------------------------===//
 
+static std::pair<const void*,const void*> EagerlyAssumeTag
+  = std::pair<const void*,const void*>(&EagerlyAssumeTag,0);
+
 void GRExprEngine::EvalEagerlyAssume(NodeSet &Dst, NodeSet &Src, Expr *Ex) {
-  std::pair<const void*,const void*>
-    EagerlyAssumeTag((const void*)&EagerlyAssumeTag, 0);
-  
   for (NodeSet::iterator I=Src.begin(), E=Src.end(); I!=E; ++I) {
     NodeTy *Pred = *I;