[cfe-commits] r101236 - /cfe/trunk/lib/Analysis/CFG.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Tue Apr 13 22:50:04 PDT 2010
Author: zhongxingxu
Date: Wed Apr 14 00:50:04 2010
New Revision: 101236
URL: http://llvm.org/viewvc/llvm-project?rev=101236&view=rev
Log:
Use direct assignment instead of user defined conversion.
Modified:
cfe/trunk/lib/Analysis/CFG.cpp
Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=101236&r1=101235&r2=101236&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Wed Apr 14 00:50:04 2010
@@ -1719,10 +1719,10 @@
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);
}
More information about the cfe-commits
mailing list