diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp index 2f37f7f972cb..1d51f61351fe 100644 --- a/contrib/llvm-project/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp +++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp @@ -119,7 +119,7 @@ static void restoreSSA(const DominatorTree &DT, const Loop *L, LLVM_DEBUG(dbgs() << "externally used: " << Def->getName() << "\n"); auto NewPhi = PHINode::Create(Def->getType(), Incoming.size(), - Def->getName() + ".moved", &LoopExitBlock->front()); + Def->getName() + ".moved", LoopExitBlock->begin()); for (auto *In : Incoming) { LLVM_DEBUG(dbgs() << "predecessor " << In->getName() << ": "); if (Def->getParent() == In || DT.dominates(Def, In)) { |