1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -inline -disable-output 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Inlining the first call caused the inliner function to delete the second 4*9880d681SAndroid Build Coastguard Worker; call. Then the inliner tries to inline the second call, which no longer 5*9880d681SAndroid Build Coastguard Worker; exists. 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine internal void @Callee1() { 8*9880d681SAndroid Build Coastguard Worker unreachable 9*9880d681SAndroid Build Coastguard Worker} 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerdefine void @Callee2() { 12*9880d681SAndroid Build Coastguard Worker ret void 13*9880d681SAndroid Build Coastguard Worker} 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerdefine void @caller() { 16*9880d681SAndroid Build Coastguard Worker call void @Callee1( ) 17*9880d681SAndroid Build Coastguard Worker call void @Callee2( ) 18*9880d681SAndroid Build Coastguard Worker ret void 19*9880d681SAndroid Build Coastguard Worker} 20*9880d681SAndroid Build Coastguard Worker 21