blob: 7f9520b51d333f98ea31b2d2010bf80fa2151ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
; RUN: llc < %s | FileCheck %s
declare i32 @__gxx_personality_v0(...) addrspace(0)
declare void @__cxa_call_unexpected(ptr)
declare void @llvm.donothing() readnone
; CHECK: f1
define void @f1() nounwind uwtable ssp personality ptr @__gxx_personality_v0 {
entry:
; CHECK-NOT: donothing
invoke void @llvm.donothing()
to label %invoke.cont unwind label %lpad
invoke.cont:
ret void
lpad:
%0 = landingpad { ptr, i32 }
filter [0 x ptr] zeroinitializer
%1 = extractvalue { ptr, i32 } %0, 0
tail call void @__cxa_call_unexpected(ptr %1) noreturn nounwind
unreachable
}
; CHECK: f2
define void @f2() nounwind {
entry:
; CHECK-NOT: donothing
call void @llvm.donothing()
ret void
}
|