[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / Transforms / GlobalOpt / 2008-12-16-HeapSRACrash.ll
index 613cb7bcef02f51fb5efddbfe6d866a50fba64f1..b6e9e979d17d8543666e5d175bd3d7fb144ea3d7 100644 (file)
@@ -8,7 +8,7 @@ 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))
         %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
 }