[llvm] r183682 - Silencing an MSVC warning about comparing signed and unsigned values.
Aaron Ballman
aaron at aaronballman.com
Mon Jun 10 09:45:40 PDT 2013
Author: aaronballman
Date: Mon Jun 10 11:45:40 2013
New Revision: 183682
URL: http://llvm.org/viewvc/llvm-project?rev=183682&view=rev
Log:
Silencing an MSVC warning about comparing signed and unsigned values.
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp?rev=183682&r1=183681&r2=183682&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp Mon Jun 10 11:45:40 2013
@@ -461,7 +461,7 @@ void ARMELFStreamer::EmitRegSave(const S
const MCRegisterInfo &MRI = getContext().getRegisterInfo();
for (size_t i = 0; i < RegList.size(); ++i) {
unsigned Reg = MRI.getEncodingValue(RegList[i]);
- assert(Reg < (IsVector ? 32 : 16) && "Register out of range");
+ assert(Reg < (IsVector ? 32U : 16U) && "Register out of range");
unsigned Bit = (1u << Reg);
if ((Mask & Bit) == 0) {
Mask |= Bit;
More information about the llvm-commits
mailing list