From: Michael Zuckerman Date: Wed, 10 May 2017 14:00:57 +0000 (+0000) Subject: chang type from 'int' to 'size_t'. This will fix revision number 302652 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=102d6ffbefab825a907cd984951f91188624328d;p=llvm chang type from 'int' to 'size_t'. This will fix revision number 302652 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302660 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index d213bf3fa3a..3b213ef4ce0 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -1223,7 +1223,7 @@ bool AsmParser::isAltmacroString(SMLoc &StrLoc, SMLoc &EndLoc) { /// \brief creating a string without the escape characters '!'. void AsmParser::altMacroString(StringRef AltMacroStr,std::string &Res) { - for (int Pos = 0; Pos < AltMacroStr.size(); Pos++) { + for (size_t Pos = 0; Pos < AltMacroStr.size(); Pos++) { if (AltMacroStr[Pos] == '!') Pos++; Res += AltMacroStr[Pos];