[llvm] r222966 - Use an unsigned type because there seems to be no reason for it to be signed.

Craig Topper craig.topper at gmail.com
Sat Nov 29 16:24:32 PST 2014


Author: ctopper
Date: Sat Nov 29 18:24:32 2014
New Revision: 222966

URL: http://llvm.org/viewvc/llvm-project?rev=222966&view=rev
Log:
Use an unsigned type because there seems to be no reason for it to be signed.

Modified:
    llvm/trunk/lib/TableGen/TGParser.cpp

Modified: llvm/trunk/lib/TableGen/TGParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGParser.cpp?rev=222966&r1=222965&r2=222966&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/TGParser.cpp (original)
+++ llvm/trunk/lib/TableGen/TGParser.cpp Sat Nov 29 18:24:32 2014
@@ -224,7 +224,7 @@ bool TGParser::AddSubMultiClass(MultiCla
     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(),





More information about the llvm-commits mailing list