[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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user