From: Craig Topper Date: Sun, 13 Sep 2015 18:01:09 +0000 (+0000) Subject: [TableGen] Use 'size_t' instead of 'unsigned' to better match the argument types... X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=9bd78892b0cbf77a3e01208146129dc19d5837fe;ds=sidebyside [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 --- diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 30f27ec5413..5e13d156b94 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -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 ']':