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 | fe9b768aaa58b069dd2ea3c3e223a36d034656ea (patch) | |
| tree | e95b303146882accbf3f5d4d7c6fdb5deb672a05 | |
| parent | 7b1a4c18ea813ba3d7611b7d659b9195c44b0017 (diff) | |
| download | bcm5719-llvm-fe9b768aaa58b069dd2ea3c3e223a36d034656ea.tar.gz bcm5719-llvm-fe9b768aaa58b069dd2ea3c3e223a36d034656ea.zip | |
Fix possible null dereference in CFG construction.
llvm-svn: 76261
| -rw-r--r-- | clang/lib/Analysis/CFG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index f85627e7d96..fb3165ed395 100644 --- a/clang/lib/Analysis/CFG.cpp +++ b/clang/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()); |

