diff options
Diffstat (limited to 'test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll')
-rw-r--r-- | test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll b/test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll index 210eb97..267a6c0 100644 --- a/test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll +++ b/test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll @@ -7,14 +7,14 @@ define internal i32 @callee(i1 %C, i32* %A) { entry: ; Unconditonally load the element at %A - %A.0 = load i32* %A + %A.0 = load i32, i32* %A br i1 %C, label %T, label %F T: ret i32 %A.0 F: ; Load the element at offset two from %A. This should not be promoted! - %A.2 = getelementptr i32* %A, i32 2 - %R = load i32* %A.2 + %A.2 = getelementptr i32, i32* %A, i32 2 + %R = load i32, i32* %A.2 ret i32 %R } |