; This input caused the mem2reg pass to die because it was trying to promote; the %r alloca, even though it is invalid to do so in this case!;; RUN: opt < %s -mem2regdefinevoid@test(){%r=allocai32; <i32*> [#uses=2]storei324,i32*%rstorei32*%r,i32**nullretvoid}