[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / Transforms / Inline / byval_lifetime.ll
index e8dff2aa711d4315e21a9100fd7267ebb4ef70d9..60066852ed3f822c149f470124c0f532454a2eae 100644 (file)
@@ -10,8 +10,8 @@
 
 define i32 @foo(%struct.foo* byval align 8 %f, i32 %a) {
 entry:
-  %a1 = getelementptr inbounds %struct.foo* %f, i32 0, i32 1
-  %arrayidx = getelementptr inbounds [16 x i32]* %a1, i32 0, i32 %a
+  %a1 = getelementptr inbounds %struct.foo, %struct.foo* %f, i32 0, i32 1
+  %arrayidx = getelementptr inbounds [16 x i32], [16 x i32]* %a1, i32 0, i32 %a
   %tmp2 = load i32* %arrayidx, align 1
   ret i32 %tmp2
 }