[llvm] [DLCov][NFC] Annotate intentionally-blank DebugLocs in existing code (PR #136192)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 05:55:24 PDT 2025
================
@@ -419,7 +419,8 @@ static bool processSwitch(SwitchInst *I, LazyValueInfo *LVI,
BasicBlock *NewUnreachableBB =
BasicBlock::Create(BB->getContext(), "default.unreachable",
BB->getParent(), DefaultDest);
- new UnreachableInst(BB->getContext(), NewUnreachableBB);
+ auto *UI = new UnreachableInst(BB->getContext(), NewUnreachableBB);
+ UI->setDebugLoc(DebugLoc::getTemporary());
----------------
OCHyams wrote:
why temporary?
https://github.com/llvm/llvm-project/pull/136192
More information about the llvm-commits
mailing list