https://llvm.org/bugs/show_bug.cgi?id=31012
Bug ID: 31012 Summary: IRMover duplicates global variable !dbg attachments Product: libraries Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Linker Assignee: unassignedb...@nondot.org Reporter: apra...@apple.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 17585 --> https://llvm.org/bugs/attachment.cgi?id=17585&action=edit test case with a global variable To reproduce, copy the attached testcase to test/Linker or just run it through llvm-link with any other module as a second input. The global object g > @g = common global i32 0, align 4, !dbg !0 will first be materialized with a !dbg attachement. Later, IRMover will invoke linkGlobalValueBody() which calls GlobalObject::copyMetadata() a second time, thus duplicating the !dbg attachment and creating an object g > @g = common global i32 0, align 4, !dbg !0, !dbg 0 with a duplicate !dbg attachment. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs