[llvm-commits] [llvm] r44001 - /llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
Owen Anderson
resistor at mac.com
Sun Nov 11 16:56:04 PST 2007
Author: resistor
Date: Sun Nov 11 18:56:04 2007
New Revision: 44001
URL: http://llvm.org/viewvc/llvm-project?rev=44001&view=rev
Log:
Fix on 64-bit machines.
Modified:
llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=44001&r1=44000&r2=44001&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Sun Nov 11 18:56:04 2007
@@ -601,7 +601,7 @@
for (unsigned i = 0, e = Registers.size(); i != e; ++i) {
Record *Reg = Registers[i].TheDef;
std::vector<int> RegNums = Reg->getValueAsListOfInts("DwarfNumbers");
- maxLength = std::max(maxLength, RegNums.size());
+ maxLength = std::max((size_t)maxLength, RegNums.size());
if (DwarfRegNums.count(Reg))
cerr << "Warning: DWARF numbers for register " << getQualifiedName(Reg)
<< "specified multiple times\n";
More information about the llvm-commits
mailing list