[llvm] r232035 - Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC.
Aaron Ballman
aaron at aaronballman.com
Thu Mar 12 06:24:06 PDT 2015
Author: aaronballman
Date: Thu Mar 12 08:24:06 2015
New Revision: 232035
URL: http://llvm.org/viewvc/llvm-project?rev=232035&view=rev
Log:
Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=232035&r1=232034&r2=232035&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Thu Mar 12 08:24:06 2015
@@ -2853,7 +2853,7 @@ ARMTargetLowering::StoreByValRegs(CCStat
CCInfo.getInRegsParamInfo(InRegsParamRecordIdx, RBegin, REnd);
} else {
unsigned RBeginIdx = CCInfo.getFirstUnallocated(GPRArgRegs);
- RBegin = RBeginIdx == 4 ? ARM::R4 : GPRArgRegs[RBeginIdx];
+ RBegin = RBeginIdx == 4 ? (unsigned)ARM::R4 : GPRArgRegs[RBeginIdx];
REnd = ARM::R4;
}
More information about the llvm-commits
mailing list