forked from OSchip/llvm-project
Fix possible null dereference in CFG construction.
llvm-svn: 76261
This commit is contained in:
parent
7b1a4c18ea
commit
fe9b768aaa
|
@ -429,6 +429,7 @@ CFGBlock *CFGBuilder::VisitBinaryOperator(BinaryOperator *B, bool alwaysAdd) {
|
|||
return addStmt(B->getLHS());
|
||||
}
|
||||
else if (B->getOpcode() == BinaryOperator::Comma) { // ,
|
||||
autoCreateBlock();
|
||||
Block->appendStmt(B);
|
||||
addStmt(B->getRHS());
|
||||
return addStmt(B->getLHS());
|
||||
|
|
Loading…
Reference in New Issue