-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilladuplicateResolved as duplicateResolved as duplicate
Description
Bugzilla Link | 2429 |
Resolution | DUPLICATE |
Resolved on | Jun 12, 2008 01:45 |
Version | unspecified |
OS | MacOS X |
Attachments | A minimal example of using 'unwind' |
Reporter | LLVM Bugzilla Contributor |
Extended Description
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 ; :2 [#uses=1]
success: ; preds = %entry
ret i32 %2
failure: ; preds = %entry
ret i32 -1
}
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilladuplicateResolved as duplicateResolved as duplicate