]> granicus.if.org Git - clang/commitdiff
[CFG] encode unreachable block information for would-have-been successors for calls...
authorTed Kremenek <kremenek@apple.com>
Thu, 27 Feb 2014 00:24:05 +0000 (00:24 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 27 Feb 2014 00:24:05 +0000 (00:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202327 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 0251927cc53ae002f832729c311b7061d0a32cb7..180a01289b12c605f72fecb6e725ff224bfd25bc 100644 (file)
@@ -742,7 +742,7 @@ CFGBlock *CFGBuilder::createBlock(bool add_successor) {
 CFGBlock *CFGBuilder::createNoReturnBlock() {
   CFGBlock *B = createBlock(false);
   B->setHasNoReturnElement();
-  addSuccessor(B, &cfg->getExit());
+  addSuccessor(B, &cfg->getExit(), Succ);
   return B;
 }