From: Quentin Colombet Date: Fri, 27 Jan 2017 01:30:46 +0000 (+0000) Subject: [ARM][LegalizerInfo] Specify the type of the opcode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7899341fe1e721c208fad79411d1ab8ab7dd77a;p=llvm [ARM][LegalizerInfo] Specify the type of the opcode. 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 --- diff --git a/lib/Target/ARM/ARMLegalizerInfo.cpp b/lib/Target/ARM/ARMLegalizerInfo.cpp index 5f4a549565e..f12a4f70251 100644 --- a/lib/Target/ARM/ARMLegalizerInfo.cpp +++ b/lib/Target/ARM/ARMLegalizerInfo.cpp @@ -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);