summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalOpt/ctor-list-opt.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-07 22:45:41 +0000
committerDan Gohman <gohman@apple.com>2009-09-07 22:45:41 +0000
commitef17e24aee69486b4d68b128f2a313fdddd6e475 (patch)
tree9b54fdc7c9ca020fa58830e6fb4e1e6748eca716 /test/Transforms/GlobalOpt/ctor-list-opt.ll
parent80bdc967e946b5d68646ffdee857400f9a120cca (diff)
downloadllvm-ef17e24aee69486b4d68b128f2a313fdddd6e475.tar.gz
llvm-ef17e24aee69486b4d68b128f2a313fdddd6e475.tar.bz2
llvm-ef17e24aee69486b4d68b128f2a313fdddd6e475.tar.xz
Add inbounds to these getelementptrs, now that GlobalOpt requires this,
to preserve the meaning of these tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81166 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GlobalOpt/ctor-list-opt.ll')
-rw-r--r--test/Transforms/GlobalOpt/ctor-list-opt.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/GlobalOpt/ctor-list-opt.ll b/test/Transforms/GlobalOpt/ctor-list-opt.ll
index 56aeadb386..ab92ce8a4b 100644
--- a/test/Transforms/GlobalOpt/ctor-list-opt.ll
+++ b/test/Transforms/GlobalOpt/ctor-list-opt.ll
@@ -43,9 +43,9 @@ define internal void @CTOR4() {
}
define internal void @CTOR5() {
- %X.2p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; <i32*> [#uses=2]
+ %X.2p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; <i32*> [#uses=2]
%X.2 = load i32* %X.2p ; <i32> [#uses=1]
- %X.1p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 0 ; <i32*> [#uses=1]
+ %X.1p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 0 ; <i32*> [#uses=1]
store i32 %X.2, i32* %X.1p
store i32 42, i32* %X.2p
ret void