summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-07-26 23:24:15 +0000
committerJordan Rose <jordan_rose@apple.com>2012-07-26 23:24:15 +0000
commit7aab2295bea7ed7bd1d6450722d56d29ddcb6bed (patch)
treee178c65cb5e5bf4c36e276c5300058cfad4b42ad /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
parent226459efff851e2bc102e528dd69c94d53e33e62 (diff)
downloadbcm5719-llvm-7aab2295bea7ed7bd1d6450722d56d29ddcb6bed.tar.gz
bcm5719-llvm-7aab2295bea7ed7bd1d6450722d56d29ddcb6bed.zip
[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. llvm-svn: 160840
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 5ad0269b6fc..d1ee60001e1 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/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<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;
}
OpenPOWER on IntegriCloud