Fix on 64-bit machines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2007-11-12 00:56:04 +00:00
parent 2e7eedf382
commit e7e113361e

View File

@ -601,7 +601,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
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";