1*9880d681SAndroid Build Coastguard Worker; This input caused the mem2reg pass to die because it was trying to promote 2*9880d681SAndroid Build Coastguard Worker; the %r alloca, even though it is invalid to do so in this case! 3*9880d681SAndroid Build Coastguard Worker; 4*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -mem2reg 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine void @test() { 7*9880d681SAndroid Build Coastguard Worker %r = alloca i32 ; <i32*> [#uses=2] 8*9880d681SAndroid Build Coastguard Worker store i32 4, i32* %r 9*9880d681SAndroid Build Coastguard Worker store i32* %r, i32** null 10*9880d681SAndroid Build Coastguard Worker ret void 11*9880d681SAndroid Build Coastguard Worker} 12*9880d681SAndroid Build Coastguard Worker 13