diff options
Diffstat (limited to 'test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll')
-rw-r--r-- | test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll b/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll index 613cb7b..e9c1678 100644 --- a/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll +++ b/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll @@ -6,9 +6,9 @@ target triple = "i386-apple-darwin7" define void @bar(i32 %Size) nounwind noinline { entry: - %malloccall = tail call i8* @malloc(i32 trunc (i64 mul (i64 ptrtoint (i32* getelementptr (i32* null, i32 1) to i64), i64 2000000) to i32)) + %malloccall = tail call i8* @malloc(i32 trunc (i64 mul (i64 ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64), i64 2000000) to i32)) %tmp = bitcast i8* %malloccall to [1000000 x %struct.foo]* - %.sub = getelementptr [1000000 x %struct.foo]* %tmp, i32 0, i32 0 ; <%struct.foo*> [#uses=1] + %.sub = getelementptr [1000000 x %struct.foo], [1000000 x %struct.foo]* %tmp, i32 0, i32 0 ; <%struct.foo*> [#uses=1] store %struct.foo* %.sub, %struct.foo** @X, align 4 ret void } @@ -17,7 +17,7 @@ declare noalias i8* @malloc(i32) define i32 @baz() nounwind readonly noinline { bb1.thread: - %tmpLD1 = load %struct.foo** @X, align 4 ; <%struct.foo*> [#uses=3] + %tmpLD1 = load %struct.foo*, %struct.foo** @X, align 4 ; <%struct.foo*> [#uses=3] store %struct.foo* %tmpLD1, %struct.foo** null br label %bb1 |