X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FTableGen%2FTGParser.cpp;h=4ff108d2603a40ffc8f9e78b279b72b54e6d5c91;hb=65ee1e6ff4d82f58fbea5c2e5cadf9a0be797955;hp=68a1cba3da5f0662ac105d294657cf85d46ea627;hpb=3dc2e96eec566f8c4e88a34296d6f10b840d7d1e;p=oota-llvm.git diff --git a/utils/TableGen/TGParser.cpp b/utils/TableGen/TGParser.cpp index 68a1cba3da5..4ff108d2603 100644 --- a/utils/TableGen/TGParser.cpp +++ b/utils/TableGen/TGParser.cpp @@ -294,8 +294,8 @@ bool TGParser::ParseRangePiece(std::vector &Ranges) { TokError("expected integer or bitrange"); return true; } - int Start = Lex.getCurIntVal(); - int End; + int64_t Start = Lex.getCurIntVal(); + int64_t End; if (Start < 0) return TokError("invalid range, cannot be negative"); @@ -426,7 +426,7 @@ RecTy *TGParser::ParseType() { TokError("expected integer in bits type"); return 0; } - unsigned Val = Lex.getCurIntVal(); + uint64_t Val = Lex.getCurIntVal(); if (Lex.Lex() != tgtok::greater) { // Eat count. TokError("expected '>' at end of bits type"); return 0;