search for: shouldthrow

Displaying 2 results from an estimated 2 matches for "shouldthrow".

2009 Aug 16
2
[LLVMdev] Throwing function being marked nounwind under optimzation?
...s the Unwind block as unreachable. As a consequence of that, the call to _Unwind_SjLj_Resume() is optimized away, and thus the function is considered to not throw in PruneEH.cpp. Very strange stuff. Thoughts on how to proceed in figuring out the root cause of what's going wrong? bool ShouldThrow; int throws() try { if (ShouldThrow) throw 7; return 123; } catch (...) { printf("'throws' threw an exception: rethrowing!\n"); throw; }
2009 Aug 16
0
[LLVMdev] Throwing function being marked nounwind under optimzation?
...As a > consequence of that, the call to _Unwind_SjLj_Resume() is optimized > away, and thus the function is considered to not throw in PruneEH.cpp. > Very strange stuff. > > Thoughts on how to proceed in figuring out the root cause of what's > going wrong? > > > bool ShouldThrow; > > int throws() > try > { > if (ShouldThrow) throw 7; return 123; > } catch (...) { > printf("'throws' threw an exception: rethrowing!\n"); > throw; > } > > _______________________________________________ > LLVM Developers mailing list...