blob: 785a425b12015b1a749464b60e9f63fad684c6ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
; The inliner is breaking inlining invoke instructions where there is a PHI
; node in the exception destination, and the inlined function contains an
; unwind instruction.
; RUN: llvm-upgrade < %s | llvm-as | opt -inline -disable-output
implementation
linkonce void %foo() {
unwind
}
int %test() {
BB1:
invoke void %foo() to label %Cont except label %Cont
Cont:
%A = phi int [ 0, %BB1], [0, %BB1]
ret int %A
}
|