Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31896 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Linker/testlink1.ll b/test/Linker/testlink1.ll
index df70afe..845d0fe 100644
--- a/test/Linker/testlink1.ll
+++ b/test/Linker/testlink1.ll
@@ -25,7 +25,7 @@
%v1 = load int* %MyVar
call void %print(int %v1) ;; Should start out 4
- %idx = getelementptr { \2 *, int }* %MyIntList, long 0, ubyte 1
+ %idx = getelementptr { \2 *, int }* %MyIntList, long 0, uint 1
%v2 = load int* %idx
call void %print(int %v2) ;; Should start out 17
diff --git a/test/Linker/testlink2.ll b/test/Linker/testlink2.ll
index 31a29eb..369f907 100644
--- a/test/Linker/testlink2.ll
+++ b/test/Linker/testlink2.ll
@@ -20,7 +20,7 @@
int "foo"(int %blah)
begin
store int %blah, int *%MyVar
- %idx = getelementptr { \2 *, int } * %MyIntList, long 0, ubyte 1
+ %idx = getelementptr { \2 *, int } * %MyIntList, long 0, uint 1
store int 12, int* %idx
%ack = load int * %0 ;; Load from the unnamed constant