For r181148: fixed warning 'enumeral and non-enumeral type in conditional expression'.

llvm-svn: 181437
This commit is contained in:
Stepan Dyatkovskiy 2013-05-08 14:51:27 +00:00
parent 6f4be19b57
commit 2703bcaad3
1 changed files with 1 additions and 1 deletions

View File

@ -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.