llvm.org GIT mirror llvm / 5061263
New bug testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2422 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This input caused the mem2reg pass to die because it was trying to promote
1 ; the %r alloca, even though it is invalid to do so in this case!
2 ;
3 ; RUN: as < %s | opt -mem2reg
4
5
6 implementation
7
8 void "test"()
9 begin
10 %r = alloca int ; [#uses=2]
11 store int 4, int* %r
12 store int* %r, int** null
13 ret void
14 end