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 2e33828 commit b54ea1fCopy full SHA for b54ea1f
llvm/lib/Transforms/Utils/Debugify.cpp
@@ -665,6 +665,13 @@ bool llvm::checkDebugInfoMetadata(Module &M,
665
// again in the collectDebugInfoMetadata(), since as an input we can use
666
// the debugging information from the previous pass.
667
DebugInfoBeforePass = DebugInfoAfterPass;
668
+ // We should make this conditional on debugify-each, but this has to be done
669
+ // if we're reusing DebugInfoAfterPass.
670
+ for (const auto &L : DebugInfoBeforePass.DILocations) {
671
+ auto Instr = L.first;
672
+ DebugInfoBeforePass.InstToDelete.insert(
673
+ {const_cast<Instruction *>(Instr), const_cast<Instruction *>(Instr)});
674
+ }
675
676
LLVM_DEBUG(dbgs() << "\n\n");
677
return Result;
0 commit comments