We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 970f9b2 commit 0899f0eCopy full SHA for 0899f0e
llvm/lib/Transforms/Utils/Debugify.cpp
@@ -672,6 +672,13 @@ bool llvm::checkDebugInfoMetadata(Module &M,
672
// again in the collectDebugInfoMetadata(), since as an input we can use
673
// the debugging information from the previous pass.
674
DebugInfoBeforePass = DebugInfoAfterPass;
675
+ // We should make this conditional on debugify-each, but this has to be done
676
+ // if we're reusing DebugInfoAfterPass.
677
+ for (const auto &L : DebugInfoBeforePass.DILocations) {
678
+ auto Instr = L.first;
679
+ DebugInfoBeforePass.InstToDelete.insert(
680
+ {const_cast<Instruction *>(Instr), const_cast<Instruction *>(Instr)});
681
+ }
682
683
LLVM_DEBUG(dbgs() << "\n\n");
684
return Result;
0 commit comments