[llvm] Globalopt pass produces invalid debug info (PR #100654)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 14:32:10 PDT 2024


================
@@ -1338,6 +1338,7 @@ deleteIfDead(GlobalValue &GV,
     if (DeleteFnCallback)
       DeleteFnCallback(*F);
   }
+  ReplaceableMetadataImpl::SalvageDebugInfo(GV);
----------------
ykhatav wrote:

Yes, I can investigate more and follow up on a different patch if it's a viable approach. 

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


More information about the llvm-commits mailing list