From: Zhongxing Xu Date: Sat, 4 Oct 2008 05:48:38 +0000 (+0000) Subject: Reverse the RHSBlock of LogicalOp && and || X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=924d9a8cb989b5702dd07e1b1d7e8be9084f24f0;p=clang Reverse the RHSBlock of LogicalOp && and || git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57041 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/CFG.cpp b/lib/AST/CFG.cpp index 0313ada82c..8e9c3fb10b 100644 --- a/lib/AST/CFG.cpp +++ b/lib/AST/CFG.cpp @@ -458,6 +458,7 @@ CFGBlock* CFGBuilder::WalkAST(Stmt* Terminator, bool AlwaysAddStmt = false) { Succ = ConfluenceBlock; Block = NULL; CFGBlock* RHSBlock = Visit(B->getRHS()); + FinishBlock(RHSBlock); // Now link the LHSBlock with RHSBlock. if (B->getOpcode() == BinaryOperator::LOr) {