Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
[oota-llvm.git] / test / Transforms / DSAnalysis / badcases.ll
index efae6463c51379407aeefed46843edfb96200ad1..2c0689228b9a25ed3aa73d8a11bbad71f1f70cf5 100644 (file)
@@ -15,7 +15,7 @@ void %test1({int, int} * %X) {
 void %test2({int, int} * %X) {
        getelementptr {int, int} * %X, long 0
        %Y = cast {int, int} * %X to {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte} *
-       %Z = getelementptr {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte}* %Y, long 0, ubyte 7
+       %Z = getelementptr {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte}* %Y, long 0, uint 7
        store sbyte 6, sbyte *%Z
        ret void
 }