From: Jordan Rose Date: Thu, 26 Jul 2012 23:24:15 +0000 (+0000) Subject: [analyzer] Use a stack-based local instead of a temporary to fix build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3fd87c18b865a1bf61d3b977051580f9315f2a5;p=clang [analyzer] Use a stack-based local instead of a temporary to fix build. Passing a temporary via reference parameter still requires a visible copy constructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160840 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp index 5ad0269b6f..d1ee60001e 100644 --- a/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -877,10 +877,10 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, case Stmt::ObjCMessageExprClass: { Bldr.takeNodes(Pred); - VisitObjCMessage(ObjCMethodCall(cast(S), - Pred->getState(), - Pred->getLocationContext()), - Pred, Dst); + ObjCMethodCall Call(cast(S), + Pred->getState(), + Pred->getLocationContext()); + VisitObjCMessage(Call, Pred, Dst); Bldr.addNodes(Dst); break; }