[llvm] r339059 - Fix a -Wsign-compare
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 6 14:26:47 PDT 2018
Author: rnk
Date: Mon Aug 6 14:26:47 2018
New Revision: 339059
URL: http://llvm.org/viewvc/llvm-project?rev=339059&view=rev
Log:
Fix a -Wsign-compare
Modified:
llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=339059&r1=339058&r2=339059&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Mon Aug 6 14:26:47 2018
@@ -1407,7 +1407,7 @@ bool RegisterCoalescer::reMaterializeTri
if (ToBeUpdated.count(SrcReg))
return true;
- long NumCopyUses = 0;
+ unsigned NumCopyUses = 0;
for (MachineOperand &UseMO : MRI->use_nodbg_operands(SrcReg)) {
if (UseMO.getParent()->isCopyLike())
NumCopyUses++;
More information about the llvm-commits
mailing list