[llvm] [RemoveDIs] Don't convert debug-info in bitcode-loading just now (PR #80865)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 03:02:07 PST 2024


================
@@ -1775,6 +1775,8 @@ IRMover::IRMover(Module &M) : Composite(M) {
 Error IRMover::move(std::unique_ptr<Module> Src,
                     ArrayRef<GlobalValue *> ValuesToLink,
                     LazyCallback AddLazyFor, bool IsPerformingImport) {
+  if (getModule().IsNewDbgInfoFormat)
+    Src->convertToNewDbgValues();
----------------
SLTozer wrote:

Not familiar with the context of this function, but presumably `Src` will never be in the new format already because it's just been read from bitcode?

https://github.com/llvm/llvm-project/pull/80865


More information about the llvm-commits mailing list