From d45efb54677eee5f243de96523d32d54c2a171b2 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 30 Nov 2014 00:24:32 +0000 Subject: [PATCH] Use an unsigned type because there seems to be no reason for it to be signed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222966 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/TableGen/TGParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TableGen/TGParser.cpp b/lib/TableGen/TGParser.cpp index b6ed2e897c6..fbb4184e6b3 100644 --- a/lib/TableGen/TGParser.cpp +++ b/lib/TableGen/TGParser.cpp @@ -224,7 +224,7 @@ bool TGParser::AddSubMultiClass(MultiClass *CurMC, 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(),