aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-04-14 05:50:04 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-04-14 05:50:04 +0000
commit21f6d6ea71b89aeae6b9262c8cbdff7f6328e749 (patch)
tree5c3110f0bad9d7089d8bbd21a0ab1c088c17660d
parent96c250a9d2f3bcff800500c22a8cf75579395588 (diff)
Use direct assignment instead of user defined conversion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101236 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/CFG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp
index 4e2f43748e..e447657e9e 100644
--- a/lib/Analysis/CFG.cpp
+++ b/lib/Analysis/CFG.cpp
@@ -1719,10 +1719,10 @@ CFGBlock* CFGBuilder::VisitCXXCatchStmt(CXXCatchStmt* CS) {
CFGBlock *CFGBuilder::VisitCXXMemberCallExpr(CXXMemberCallExpr *C,
AddStmtChoice asc) {
- AddStmtChoice asc2 = asc.asLValue() ? AddStmtChoice::AlwaysAddAsLValue
- : AddStmtChoice::AlwaysAdd;
+ AddStmtChoice::Kind K = asc.asLValue() ? AddStmtChoice::AlwaysAddAsLValue
+ : AddStmtChoice::AlwaysAdd;
autoCreateBlock();
- AppendStmt(Block, C, asc2);
+ AppendStmt(Block, C, AddStmtChoice(K));
return VisitChildren(C);
}