Use direct assignment instead of user defined conversion.

llvm-svn: 101236
This commit is contained in:
Zhongxing Xu 2010-04-14 05:50:04 +00:00
parent 91ea6ac3e9
commit b5e94ac97d
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}