Fix possible null dereference in CFG construction.

llvm-svn: 76261
This commit is contained in:
Ted Kremenek 2009-07-17 22:57:50 +00:00
parent 7b1a4c18ea
commit fe9b768aaa
1 changed files with 1 additions and 0 deletions

View File

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