2015-03-17 12:54:04 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
|
|
|
|
|
|
|
|
; Test that we can handle .Lexception0 being defined. We used to crash.
|
|
|
|
|
|
|
|
; CHECK: .cfi_lsda 3, [[LABEL:.*]]
|
|
|
|
; CHECK: [[LABEL]]:
|
|
|
|
; CHECK-NEXT: .byte 255 # @LPStart Encoding = omit
|
|
|
|
|
|
|
|
declare void @g()
|
|
|
|
|
2015-06-17 20:52:32 +00:00
|
|
|
define void @f() personality i8* bitcast (void ()* @g to i8*) {
|
2015-03-17 12:54:04 +00:00
|
|
|
bb0:
|
|
|
|
call void asm ".Lexception0:", ""()
|
|
|
|
invoke void @g()
|
|
|
|
to label %bb2 unwind label %bb1
|
|
|
|
bb1:
|
2015-06-17 20:52:32 +00:00
|
|
|
landingpad { i8*, i32 }
|
2015-03-17 12:54:04 +00:00
|
|
|
catch i8* null
|
|
|
|
br label %bb2
|
|
|
|
|
|
|
|
bb2:
|
|
|
|
ret void
|
|
|
|
}
|