aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll')
-rw-r--r--test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll b/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll
index d978723..51feb48 100644
--- a/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll
+++ b/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll
@@ -3,8 +3,8 @@
@zero = internal global [10 x i32] zeroinitializer
define i32 @test1(i64 %idx) nounwind {
- %arrayidx = getelementptr inbounds [10 x i32]* @zero, i64 0, i64 %idx
- %l = load i32* %arrayidx
+ %arrayidx = getelementptr inbounds [10 x i32], [10 x i32]* @zero, i64 0, i64 %idx
+ %l = load i32, i32* %arrayidx
ret i32 %l
; CHECK-LABEL: @test1(
; CHECK: ret i32 0