[clang] [llvm] Disentangle DISubprogram ODR type method uniquing from metadata uniquing (PR #217042)

Orlando Cazalet-Hyams via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 17 09:49:46 PST 2026


================
@@ -1,5 +1,5 @@
-; RUN: llvm-as -disable-output < %s -o /dev/null 2>&1 | FileCheck %s
-; RUN: llvm-as < %s -o - | llvm-dis - | FileCheck %s --check-prefix=CHECK-STRIP
+; RUN: llvm-as -disable-output -disable-debug-info-type-map < %s -o /dev/null 2>&1 | FileCheck %s
----------------
OCHyams wrote:

The verifier consults isisODRUniquingDebugTypes (seemingly as a proxy for "are we linking IR modules?"), and UpgradeDebugInfo checks verifier output, meaning the verifier and UpgradeDebugInfo act differently under some tools/configs

Had to add `-disable-debug-info-type-map` because prior to the patch the "type map" wasn't enabled in llvm-as and llvm-dis, but now is

Without  `-disable-debug-info-type-map` the verifier fails with return code 1. With the option and prior to the patch the tools return 0 (with the same verifier message)


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


More information about the cfe-commits mailing list