mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
For r181148: fixed warning 'enumeral and non-enumeral type in conditional expression'.
llvm-svn: 181437
This commit is contained in:
parent
8f7222379f
commit
13432c8af4
@ -1795,7 +1795,7 @@ ARMTargetLowering::HandleByVal(
|
|||||||
// else parameter would be splitted between registers and stack,
|
// else parameter would be splitted between registers and stack,
|
||||||
// end register would be r4 in this case.
|
// end register would be r4 in this case.
|
||||||
unsigned ByValRegBegin = reg;
|
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);
|
State->addInRegsParamInfo(ByValRegBegin, ByValRegEnd);
|
||||||
// Note, first register is allocated in the beginning of function already,
|
// Note, first register is allocated in the beginning of function already,
|
||||||
// allocate remained amount of registers we need.
|
// allocate remained amount of registers we need.
|
||||||
|
Loading…
Reference in New Issue
Block a user