mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
For r181148: fixed warning 'enumeral and non-enumeral type in conditional expression'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181437 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b132946ea
commit
44b6b530e9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user