[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / Analysis / BasicAA / 2008-04-15-Byval.ll
index 2ea0314d5b6000d57300f1f747dc94d2a487bb40..9df12bdd570d608b573d522139ea2f1860246b67 100644 (file)
@@ -7,8 +7,8 @@ target triple = "i386-apple-darwin8"
 define void @foo(%struct.x* byval align 4  %X) nounwind  {
 ; CHECK: store i32 2, i32* %tmp1
 entry:
-       %tmp = getelementptr %struct.x* %X, i32 0, i32 0                ; <[4 x i32]*> [#uses=1]
-       %tmp1 = getelementptr [4 x i32]* %tmp, i32 0, i32 3             ; <i32*> [#uses=1]
+       %tmp = getelementptr %struct.x, %struct.x* %X, i32 0, i32 0             ; <[4 x i32]*> [#uses=1]
+       %tmp1 = getelementptr [4 x i32], [4 x i32]* %tmp, i32 0, i32 3          ; <i32*> [#uses=1]
        store i32 2, i32* %tmp1, align 4
        %tmp2 = call i32 (...)* @bar( %struct.x* byval align 4  %X ) nounwind           ; <i32> [#uses=0]
        br label %return