[llvm-dev] Why does verifyFunction dislike this?

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Sun May 12 16:42:29 PDT 2019


On Mon, May 13, 2019 at 12:26 AM Viktor Was BSc <gs15m015 at technikum-wien.at>
wrote:

> Hi Russell.
> Disclaimer: I haven't created IR from scratch nor have I used IRBuilder or
> Verifier before.
>
> There is a second parameter in verifyFunction which is the output stream
> it should write error messages to in case errors occur.
>
>
Ah, that led to a solution, thanks! Now the verifier reports the specific
problem: functions may not have common linkage. When I change it to
external linkage, the verifier is happy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190513/e96d18ba/attachment.html>


More information about the llvm-dev mailing list