diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 2630a1a..a3252a6 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -3127,7 +3127,8 @@ static bool markAliveBlocks(Function &F, BasicBlock *UnreachableNormalDest = BasicBlock::Create( Ctx, OrigNormalDest->getName() + ".unreachable", II->getFunction(), OrigNormalDest); - new UnreachableInst(Ctx, UnreachableNormalDest); + auto *UI = new UnreachableInst(Ctx, UnreachableNormalDest); + UI->setDebugLoc(DebugLoc::getTemporary()); II->setNormalDest(UnreachableNormalDest); if (DTU) DTU->applyUpdates( |