summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2017-01-27 01:30:46 +0000
committerQuentin Colombet <qcolombet@apple.com>2017-01-27 01:30:46 +0000
commit89dbea06f13d769050337586c98ac2c33d303694 (patch)
treea6e189a99306078e1a93615e170cb91824753197 /llvm/lib
parent68e20da3f969b8faf2b12219a9ba2e8e1575bd07 (diff)
downloadbcm5719-llvm-89dbea06f13d769050337586c98ac2c33d303694.tar.gz
bcm5719-llvm-89dbea06f13d769050337586c98ac2c33d303694.zip
[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. llvm-svn: 293248
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMLegalizerInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp b/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
index 5f4a549565e..f12a4f70251 100644
--- a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud