chang type from 'int' to 'size_t'. This will fix revision number 302652

llvm-svn: 302660
This commit is contained in:
Michael Zuckerman 2017-05-10 14:00:57 +00:00
parent 2e069f250a
commit ff29879f2e
1 changed files with 1 additions and 1 deletions

View File

@ -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];