]> granicus.if.org Git - llvm/commitdiff
[ARM][LegalizerInfo] Specify the type of the opcode.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 27 Jan 2017 01:30:46 +0000 (01:30 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 27 Jan 2017 01:30:46 +0000 (01:30 +0000)
This is to fix the win7 bot that does not seem to be very
good at infering the type when it gets used in an initiliazer list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293248 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMLegalizerInfo.cpp

index 5f4a549565e10c4fdd478f8c08d41d16c0b44f5a..f12a4f70251783ea77a1fd40907fdb58f4a83927 100644 (file)
@@ -42,7 +42,7 @@ ARMLegalizerInfo::ARMLegalizerInfo() {
   for (auto Ty : {s1, s8, s16, s32})
     setAction({G_ADD, Ty}, Legal);
 
-  for (auto Op : {G_SEXT, G_ZEXT}) {
+  for (unsigned Op : {G_SEXT, G_ZEXT}) {
     setAction({Op, s32}, Legal);
     for (auto Ty : {s1, s8, s16})
       setAction({Op, 1, Ty}, Legal);