diff options
Diffstat (limited to 'test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll')
-rw-r--r-- | test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll b/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll index ce70a1b..d1f3312 100644 --- a/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll +++ b/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll @@ -14,8 +14,8 @@ define i32 @foo() { ; And store it store { i32, i32 } %res2, { i32, i32 }* %target ; Actually use %target, so it doesn't get removed altogether - %ptr = getelementptr { i32, i32 }* %target, i32 0, i32 0 - %val = load i32* %ptr + %ptr = getelementptr { i32, i32 }, { i32, i32 }* %target, i32 0, i32 0 + %val = load i32, i32* %ptr ret i32 %val } @@ -27,7 +27,7 @@ define i32 @bar() { ; And store it store [ 2 x i32 ] %res2, [ 2 x i32 ]* %target ; Actually use %target, so it doesn't get removed altogether - %ptr = getelementptr [ 2 x i32 ]* %target, i32 0, i32 0 - %val = load i32* %ptr + %ptr = getelementptr [ 2 x i32 ], [ 2 x i32 ]* %target, i32 0, i32 0 + %val = load i32, i32* %ptr ret i32 %val } |