[llvm] r181437 - For r181148: fixed warning 'enumeral and non-enumeral type in conditional expression'.
Stepan Dyatkovskiy
stpworld at narod.ru
Wed May 8 07:51:27 PDT 2013
Author: dyatkovskiy
Date: Wed May 8 09:51:27 2013
New Revision: 181437
URL: http://llvm.org/viewvc/llvm-project?rev=181437&view=rev
Log:
For r181148: fixed warning 'enumeral and non-enumeral type in conditional expression'.
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=181437&r1=181436&r2=181437&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Wed May 8 09:51:27 2013
@@ -1795,7 +1795,7 @@ ARMTargetLowering::HandleByVal(
// else parameter would be splitted between registers and stack,
// end register would be r4 in this case.
unsigned ByValRegBegin = reg;
- unsigned ByValRegEnd = (size < excess) ? reg + size/4 : ARM::R4;
+ unsigned ByValRegEnd = (size < excess) ? reg + size/4 : (unsigned)ARM::R4;
State->addInRegsParamInfo(ByValRegBegin, ByValRegEnd);
// Note, first register is allocated in the beginning of function already,
// allocate remained amount of registers we need.
More information about the llvm-commits
mailing list