Use an unsigned type because there seems to be no reason for it to be signed.
authorCraig Topper <craig.topper@gmail.com>
Sun, 30 Nov 2014 00:24:32 +0000 (00:24 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 30 Nov 2014 00:24:32 +0000 (00:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222966 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/TGParser.cpp

index b6ed2e897c6de3cbd14585ecbb0cfb3066314cf7..fbb4184e6b3fdfe449073badb3cfb7faf2216d7f 100644 (file)
@@ -224,7 +224,7 @@ bool TGParser::AddSubMultiClass(MultiClass *CurMC,
     if (AddValue(CurRec, SubMultiClass.RefRange.Start, SMCVals[i]))
       return true;
 
     if (AddValue(CurRec, SubMultiClass.RefRange.Start, SMCVals[i]))
       return true;
 
-  int newDefStart = CurMC->DefPrototypes.size();
+  unsigned newDefStart = CurMC->DefPrototypes.size();
 
   // Add all of the defs in the subclass into the current multiclass.
   for (MultiClass::RecordVector::const_iterator i = SMC->DefPrototypes.begin(),
 
   // Add all of the defs in the subclass into the current multiclass.
   for (MultiClass::RecordVector::const_iterator i = SMC->DefPrototypes.begin(),