[llvm-bugs] [Bug 31012] New: IRMover duplicates global variable !dbg attachments
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 14 10:24:20 PST 2016
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: unassignedbugs at nondot.org
Reporter: aprantl at apple.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161114/46113aae/attachment.html>
More information about the llvm-bugs
mailing list