[llvm] r302660 - chang type from 'int' to 'size_t'. This will fix revision number 302652
Michael Zuckerman via llvm-commits
llvm-commits at lists.llvm.org
Wed May 10 07:00:57 PDT 2017
Author: mzuckerm
Date: Wed May 10 09:00:57 2017
New Revision: 302660
URL: http://llvm.org/viewvc/llvm-project?rev=302660&view=rev
Log:
chang type from 'int' to 'size_t'. This will fix revision number 302652
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=302660&r1=302659&r2=302660&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Wed May 10 09:00:57 2017
@@ -1223,7 +1223,7 @@ bool AsmParser::isAltmacroString(SMLoc &
/// \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];
More information about the llvm-commits
mailing list