[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / Analysis / BasicAA / 2007-01-13-BasePointerBadNoAlias.ll
index 46b6aaf91ac984d4792354eed818d105cc660f12..14d7f58d38a13c043591a10dbb4595924ebddbf6 100644 (file)
@@ -21,11 +21,11 @@ target triple = "i686-apple-darwin8"
 ; CHECK:   ret i32 %Z
 
 define i32 @test(%struct.closure_type* %tmp18169) {
-       %tmp18174 = getelementptr %struct.closure_type* %tmp18169, i32 0, i32 4, i32 0, i32 0           ; <i32*> [#uses=2]
+       %tmp18174 = getelementptr %struct.closure_type, %struct.closure_type* %tmp18169, i32 0, i32 4, i32 0, i32 0             ; <i32*> [#uses=2]
        %tmp18269 = bitcast i32* %tmp18174  to %struct.STYLE*           ; <%struct.STYLE*> [#uses=1]
        %A = load i32* %tmp18174                ; <i32> [#uses=1]
 
-        %tmp18272 = getelementptr %struct.STYLE* %tmp18269, i32 0, i32 0, i32 0, i32 2          ; <i16*> [#uses=1]
+        %tmp18272 = getelementptr %struct.STYLE, %struct.STYLE* %tmp18269, i32 0, i32 0, i32 0, i32 2          ; <i16*> [#uses=1]
         store i16 123, i16* %tmp18272
 
        %Q = load i32* %tmp18174                ; <i32> [#uses=1]