llvm.org GIT mirror llvm / release_22 test / Transforms / Mem2Reg / 2002-03-28-UninitializedVal.ll
release_22

Tree @release_22 (Download .tar.gz)

2002-03-28-UninitializedVal.ll @release_22raw · history · blame

; Uninitialized values are not handled correctly.
;
; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg
;

implementation

int "test"()
begin
	%X = alloca int           ; To be promoted
	%Y = load int* %X
	ret int %Y
end