Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC.

llvm-svn: 232035
This commit is contained in:
Aaron Ballman 2015-03-12 13:24:06 +00:00
parent 12865302b7
commit c579d66b9a
1 changed files with 1 additions and 1 deletions

View File

@ -2853,7 +2853,7 @@ ARMTargetLowering::StoreByValRegs(CCState &CCInfo, SelectionDAG &DAG,
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;
}