aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/malloc-promote-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GlobalOpt/malloc-promote-2.ll')
-rw-r--r--test/Transforms/GlobalOpt/malloc-promote-2.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/GlobalOpt/malloc-promote-2.ll b/test/Transforms/GlobalOpt/malloc-promote-2.ll
index 6cb4481..335ed82 100644
--- a/test/Transforms/GlobalOpt/malloc-promote-2.ll
+++ b/test/Transforms/GlobalOpt/malloc-promote-2.ll
@@ -10,8 +10,8 @@ define void @t() {
%malloccall = tail call i8* @malloc(i64 mul (i64 100, i64 4))
%P = bitcast i8* %malloccall to i32*
store i32* %P, i32** @G
- %GV = load i32** @G
- %GVe = getelementptr i32* %GV, i32 40
+ %GV = load i32*, i32** @G
+ %GVe = getelementptr i32, i32* %GV, i32 40
store i32 20, i32* %GVe
ret void
}