From c579d66b9ab9fbe3fecec7a7f5fc6135c203ff7f Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 12 Mar 2015 13:24:06 +0000 Subject: [PATCH] Silencing an "enumeral and non-enumeral type in conditional expression" warning; NFC. llvm-svn: 232035 --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index d3168617d867..aa225403b434 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -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; }