[LLVMbugs] [Bug 22368] New: LLVMParseBitcode and LLVMParseBitcodeInContext exit on error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 28 03:23:10 PST 2015


            Bug ID: 22368
           Summary: LLVMParseBitcode and LLVMParseBitcodeInContext exit on
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: pitrou at free.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

LLVMParseBitcode() and LLVMParseBitcodeInContext() are specified to return true
on error, false if ok; they also put the error message in the given

However, with 3.6rc1, those functions now exit(1) on error. This is because of
LLVMContext::diagnose(). From C code there is therefore no obvious way to get
back an error properly.

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/20150128/944a212f/attachment.html>

More information about the llvm-bugs mailing list