Open llvmbot opened 11 years ago
Maybe exception handling isn't supported on Windows (not sure).
I've tested on latest version LLVM version 3.4svn DEBUG build with assertions. Built May 31 2013 (17:59:16). Default target: i686-pc-win32 Host CPU: corei7-avx
The same issue with slightly different behaviour
d:\Alexander\Temp\2>llc test.bc SelectionDAGBuilder shouldn't visit resume instructions! UNREACHABLE executed at ........\lib\CodeGen\SelectionDAG\SelectionDAGBuilder .cpp:1885! Stack dump:
Note that I'm using Linux. Can you please verify that LLVM 3.3 release candidate 3, or the LLVM development version, works for you on windows.
The new example passes the verifier. However it doesn't crash llc (latest development version) on my machine:
$ llc pr16188-2.bc $
The bitcode is invalid:
$ opt -verify -disable-output pr16188.bc The unwind destination does not have a landingpad instruction! invoke void @Test() to label %Continue unwind label %Continue Broken module found, compilation aborted!
If you build LLVM with assertions enabled then llc will tell you this:
$ llc pr16188.bc The unwind destination does not have a landingpad instruction! invoke void @Test() to label %Continue unwind label %Continue Broken module found, compilation aborted!
Extended Description
I'm trying to create simple program using LLVM IR with exception handling. I can't find proper documentation for step by step explantion. I've created sample on the basis of: http://llvm.org/docs/LangRef.html http://llvm.org/devmtg/2011-09-16/EuroLLVM2011-ExceptionHandling.pdf
but during compilation assert message appeared:
SelectionDAGBuilder shouldn't visit resume instructions! UNREACHABLE executed at ........\lib\CodeGen\SelectionDAG\SelectionDAGBuilder .cpp:1885!
Sample file attached.