From ff29879f2e2e6512210d567bfbad614dac89f5ed Mon Sep 17 00:00:00 2001 From: Michael Zuckerman Date: Wed, 10 May 2017 14:00:57 +0000 Subject: [PATCH] chang type from 'int' to 'size_t'. This will fix revision number 302652 llvm-svn: 302660 --- llvm/lib/MC/MCParser/AsmParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index d213bf3fa3ae..3b213ef4ce09 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/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];