[TableGen] Use 'size_t' instead of 'unsigned' to better match the argument types of addAsmOperand. NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2015-09-13 18:01:09 +00:00
parent 29f50e9783
commit 9bd78892b0

View File

@ -847,9 +847,9 @@ void MatchableInfo::addAsmOperand(size_t Start, size_t End) {
/// tokenizeAsmString - Tokenize a simplified assembly string. /// tokenizeAsmString - Tokenize a simplified assembly string.
void MatchableInfo::tokenizeAsmString(const AsmMatcherInfo &Info) { void MatchableInfo::tokenizeAsmString(const AsmMatcherInfo &Info) {
StringRef String = AsmString; StringRef String = AsmString;
unsigned Prev = 0; size_t Prev = 0;
bool InTok = true; bool InTok = true;
for (unsigned i = 0, e = String.size(); i != e; ++i) { for (size_t i = 0, e = String.size(); i != e; ++i) {
switch (String[i]) { switch (String[i]) {
case '[': case '[':
case ']': case ']':