[llvm] [RemoveDIs] Make verify-uselistorder preserve the input debug info format (PR #87789)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 08:44:52 PDT 2024


================
@@ -259,6 +259,8 @@ int main(int argc, char **argv) {
       if (!DontPrint) {
         if (M) {
           ScopedDbgInfoFormatSetter FormatSetter(*M, WriteNewDbgInfoFormat);
+          if (WriteNewDbgInfoFormat)
+            M->removeDebugIntrinsicDeclarations();
----------------
OCHyams wrote:

Should the conversion function unconditionally call `removeDebugIntrinsicDeclarations` instead, or does that cause problems with existing tests?

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


More information about the llvm-commits mailing list