diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-07-17 22:57:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-07-17 22:57:50 +0000 |
commit | 6dc534ecc19a045ebcfe93eefa45da509968e888 (patch) | |
tree | 0cd019c8020ba32301fa739a454ae711bddb4eeb | |
parent | bcc38f318259411706bea39d0012294e32847d64 (diff) |
Fix possible null dereference in CFG construction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76261 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/CFG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index f85627e7d9..fb3165ed39 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -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()); |