[cfe-commits] r160840 - /cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
Jordan Rose
jordan_rose at apple.com
Thu Jul 26 16:24:16 PDT 2012
Author: jrose
Date: Thu Jul 26 18:24:15 2012
New Revision: 160840
URL: http://llvm.org/viewvc/llvm-project?rev=160840&view=rev
Log:
[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.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp?rev=160840&r1=160839&r2=160840&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp Thu Jul 26 18:24:15 2012
@@ -877,10 +877,10 @@
case Stmt::ObjCMessageExprClass: {
Bldr.takeNodes(Pred);
- VisitObjCMessage(ObjCMethodCall(cast<ObjCMessageExpr>(S),
- Pred->getState(),
- Pred->getLocationContext()),
- Pred, Dst);
+ ObjCMethodCall Call(cast<ObjCMessageExpr>(S),
+ Pred->getState(),
+ Pred->getLocationContext());
+ VisitObjCMessage(Call, Pred, Dst);
Bldr.addNodes(Dst);
break;
}
More information about the cfe-commits
mailing list