Skip to content

unwind crashes lli #2801

@llvmbot

Description

@llvmbot
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

No one assigned

    Labels

    bugzillaIssues migrated from bugzilladuplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions