[llvm-bugs] [Bug 8364] Verifier doesn't flag out-of-module constants, BC writing crashes

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 1 02:13:12 PDT 2020


Ehud Katz <ehudkatz at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |ehudkatz at gmail.com
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Ehud Katz <ehudkatz at gmail.com> ---
The testcase is incorrect.
It creates a function in module "m1", while referring it in module "m2", via a
constant bitcast. The correct code should *declare* the same function as
external in module "m2", and then reference it in the bitcast (keep the
*define* of the function in "m1").

- Note that the function needs to be uniquely named for it to work.

Closing this bug, as this is not an issue.

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/20200501/342a7b6d/attachment-0001.html>

More information about the llvm-bugs mailing list