[LLVMbugs] [Bug 13163] BlockAddress instruction with use from the global context is damaged during module link

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 8 16:46:00 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=13163

Adrian Prantl <aprantl at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #10 from Adrian Prantl <aprantl at apple.com> ---
Unfortunately I had to revert this change for now, because it breaks the
following testcase:

$ cat test.ll
%foo = type { void (i32*)* }
@global_initializer = internal constant %foo { void (i32*)* @bar }

define internal void @bar(i32*) {
 ret void
}
$ llvm-link some-empty-file.ll test.ll |llvm-dis

This causes “bar” (which is only referenced by a not-yet-linked global
initializer) to be removed.

sorry!
Adrian

-- 
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/20131109/567a6dc4/attachment.html>


More information about the llvm-bugs mailing list