From fe9b768aaa58b069dd2ea3c3e223a36d034656ea Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 17 Jul 2009 22:57:50 +0000 Subject: [PATCH] Fix possible null dereference in CFG construction. llvm-svn: 76261 --- clang/lib/Analysis/CFG.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index f85627e7d96b..fb3165ed395c 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());