[llvm-bugs] [Bug 27809] LLVMTargetMachineEmit aborts process instead of reporting error via return value
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 15 09:52:00 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27809
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Reid Kleckner <rnk at google.com> ---
(In reply to comment #8)
> Backtrace follows. Note that according to the API of LLVMTargetMachineEmit
> it is supposed to return and report errors via one of its parameters.
> Instead LLVM is writing its own error messages to stderr and then calling
> exit.
You need to install a diagnostic handler in order for LLVM to not call exit.
See LLVMContext::setDiagnosticHandler.
--
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/20160615/c9b8e9cc/attachment.html>
More information about the llvm-bugs
mailing list