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

Jeremy Morse via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 04:14:47 PDT 2026


================
@@ -1440,4 +1440,84 @@ TEST_F(CloneModule, GlobalWithBlockAddressesInitializer) {
   ASSERT_NE(OriginalBa->getBasicBlock(), ClonedBa->getBasicBlock());
 }
 
+TEST_F(CloneModule, ODRUniqueTypeMethodVerifier) {
+  // Test that the following IR, reduced from a self-host clang-22 compile,
+  // doesn't trip the verifier after cloning.
----------------
jmorse wrote:

Sounds like there's a reason, just checking it's been considered.

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


More information about the cfe-commits mailing list