[LLVMdev] Why always abort in verifyFunction?

Guowei Xu myesis at gmail.com
Mon Jun 11 01:41:38 PDT 2012


Hello everyone:

        I have a little question about the second argument *action* of
verifyFunction.

        In docs:

*Enumerator: * *AbortProcessAction*

verifyModule will print to stderr and abort()
 *PrintMessageAction*

verifyModule will print to stderr and return true
 *ReturnStatusAction*

verifyModule will just return true

       But it still abort when I pass PrintMessageAction/ReturnStatusAction
to function.

Log:
       Basic Block in function 'jitmain' does not have terminator!
       label %load_store
       LLVM ERROR: Broken module, no Basic Block terminator!


       Is there something wrong?


Best regards,
-myesis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120611/058f832b/attachment.html>


More information about the llvm-dev mailing list