diff options
author | Anna Zaks <ganna@apple.com> | 2011-12-05 21:33:11 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-12-05 21:33:11 +0000 |
commit | 02a1fc1da63f1aad88a5e80460f4f829870ec51a (patch) | |
tree | f9a757a38866dde0f21396f2726c65fa895e0e33 /clang/lib/Analysis/CFG.cpp | |
parent | 5c10794254ef4badc2d68a9edb9b9f688a10add6 (diff) | |
download | bcm5719-llvm-02a1fc1da63f1aad88a5e80460f4f829870ec51a.tar.gz bcm5719-llvm-02a1fc1da63f1aad88a5e80460f4f829870ec51a.zip |
[analyzer] Rely on LLVM Dominators in Clang dominator computation.
(Previously, Clang used it's implementation of dominators.)
The patch is contributed by Guoping Long!
llvm-svn: 145858
Diffstat (limited to 'clang/lib/Analysis/CFG.cpp')
-rw-r--r-- | clang/lib/Analysis/CFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index 4c1652122f9..de404d05f72 100644 --- a/clang/lib/Analysis/CFG.cpp +++ b/clang/lib/Analysis/CFG.cpp @@ -3039,7 +3039,7 @@ CFGBlock *CFG::createBlock() { // Create the block. CFGBlock *Mem = getAllocator().Allocate<CFGBlock>(); - new (Mem) CFGBlock(NumBlockIDs++, BlkBVC); + new (Mem) CFGBlock(NumBlockIDs++, BlkBVC, this); Blocks.push_back(Mem, BlkBVC); // If this is the first block, set it as the Entry and Exit. |