[TableGen] Use 'size_t' instead of 'unsigned' to better match the argument types...
authorCraig Topper <craig.topper@gmail.com>
Sun, 13 Sep 2015 18:01:09 +0000 (18:01 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 13 Sep 2015 18:01:09 +0000 (18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247527 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index 30f27ec54132b1886bfde6ce0d2a350744df23ee..5e13d156b94137100c6e6febb747000e8bcd7fff 100644 (file)
@@ -847,9 +847,9 @@ void MatchableInfo::addAsmOperand(size_t Start, size_t End) {
 /// tokenizeAsmString - Tokenize a simplified assembly string.
 void MatchableInfo::tokenizeAsmString(const AsmMatcherInfo &Info) {
   StringRef String = AsmString;
-  unsigned Prev = 0;
+  size_t Prev = 0;
   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]) {
     case '[':
     case ']':