http://llvm.org/bugs/show_bug.cgi?id=2429
Summary: unwind crashes lli
Product: new-bugs
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
The attached .bc file crashes lli unless -force-interpreter is used. It also
crashes when compiled to native code. (this is with the current svn head.)
Here's the IR:
---------------------------------
; ModuleID = 'unwind'
define i32 @"tart.main()->i32"() {
entry:
invoke void @"tart.foo()"( )
to label %nounwind unwind label %catch
catch:
ret i32 0
nounwind:
ret i32 1
}
define void @"tart.foo()"() {
entry:
unwind
}
define i32 @main(i32, i8**) {
entry:
invoke i32 @"tart.main()->i32"()
to label %success unwind label %failure ;
<i32>:2 [#uses=1]
success: ; preds = %entry
ret i32 %2
failure: ; preds = %entry
ret i32 -1
}
---------------------------------
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs