diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-04 03:58:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-04 03:58:28 +0000 |
commit | c24a076c6a22a932e4fc2b745fd748fe7ee3cb15 (patch) | |
tree | 8738e3a14eaf26add97664794f12e7cac9765c13 /lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 4f05611ed948ed1fb3e861d178aae18bd025ce1c (diff) |
Adjust to the new BasicBlock ctor, which requires a function parameter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 45f31aa4a8..f27a0cf60a 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -151,7 +151,7 @@ BasicBlock *LoopSimplify::SplitBlockPredecessors(BasicBlock *BB, const std::vector<BasicBlock*> &Preds) { // Create new basic block, insert right before the original block... - BasicBlock *NewBB = new BasicBlock(BB->getName()+Suffix, BB); + BasicBlock *NewBB = new BasicBlock(BB->getName()+Suffix, BB->getParent(), BB); // The preheader first gets an unconditional branch to the loop header... BranchInst *BI = new BranchInst(BB, NewBB); |