[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / Analysis / BasicAA / 2007-12-08-OutOfBoundsCrash.ll
index cd997ea525133ea1d2ec5ee901dc418ac2b67986..ceba1d24a7ef1c4f2fc26c0c894e0cc159cbddfb 100644 (file)
@@ -13,7 +13,7 @@ target triple = "x86_64-unknown-linux-gnu"
 
 define i32 @ehci_pci_setup(%struct.usb_hcd* %hcd) {
 entry:
-       %tmp14 = getelementptr %struct.usb_hcd* %hcd, i32 0, i32 0, i32 0               ; <%struct.device**> [#uses=1]
+       %tmp14 = getelementptr %struct.usb_hcd, %struct.usb_hcd* %hcd, i32 0, i32 0, i32 0              ; <%struct.device**> [#uses=1]
        %tmp15 = load %struct.device** %tmp14, align 8          ; <%struct.device*> [#uses=0]
        br i1 false, label %bb25, label %return
 
@@ -21,7 +21,7 @@ bb25:         ; preds = %entry
        br i1 false, label %cond_true, label %return
 
 cond_true:             ; preds = %bb25
-       %tmp601 = getelementptr %struct.usb_hcd* %hcd, i32 0, i32 1, i64 2305843009213693951            ; <i64*> [#uses=1]
+       %tmp601 = getelementptr %struct.usb_hcd, %struct.usb_hcd* %hcd, i32 0, i32 1, i64 2305843009213693951           ; <i64*> [#uses=1]
        %tmp67 = bitcast i64* %tmp601 to %struct.device**               ; <%struct.device**> [#uses=1]
        %tmp68 = load %struct.device** %tmp67, align 8          ; <%struct.device*> [#uses=0]
        ret i32 undef