[LLVMdev] Unwinds Gone Wild
Marc de Kruijf
dekruijf at cs.wisc.edu
Wed Jul 30 21:28:04 PDT 2008
Can anyone tell me if invoke/unwind is stable in 2.3? I'm seeing some
really weird stuff -- unwinds are ending up in seemingly arbitrary places...
definitely not inside the caller's unwind block My target is x86.
As a simple test, I tried to compile the following code and I got a
segmentation fault. It looks good to me. Can someone help me out or is
this a bug?
define i32 @foo() {
entry:
unwind
}
define i32 @main() nounwind {
entry:
%bar = invoke i32 @foo( ) to label %yes unwind label %no
yes:
ret i32 %bar
no:
ret i32 -1
}
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080730/ccffd7e3/attachment.html>
More information about the llvm-dev
mailing list