projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in error message.
[oota-llvm.git]
/
utils
/
TableGen
/
TGParser.cpp
diff --git
a/utils/TableGen/TGParser.cpp
b/utils/TableGen/TGParser.cpp
index 68a1cba3da5f0662ac105d294657cf85d46ea627..4ff108d2603a40ffc8f9e78b279b72b54e6d5c91 100644
(file)
--- a/
utils/TableGen/TGParser.cpp
+++ b/
utils/TableGen/TGParser.cpp
@@
-294,8
+294,8
@@
bool TGParser::ParseRangePiece(std::vector<unsigned> &Ranges) {
TokError("expected integer or bitrange");
return true;
}
TokError("expected integer or bitrange");
return true;
}
- int Start = Lex.getCurIntVal();
- int End;
+ int
64_t
Start = Lex.getCurIntVal();
+ int
64_t
End;
if (Start < 0)
return TokError("invalid range, cannot be negative");
if (Start < 0)
return TokError("invalid range, cannot be negative");
@@
-426,7
+426,7
@@
RecTy *TGParser::ParseType() {
TokError("expected integer in bits<n> type");
return 0;
}
TokError("expected integer in bits<n> type");
return 0;
}
- u
nsigned
Val = Lex.getCurIntVal();
+ u
int64_t
Val = Lex.getCurIntVal();
if (Lex.Lex() != tgtok::greater) { // Eat count.
TokError("expected '>' at end of bits<n> type");
return 0;
if (Lex.Lex() != tgtok::greater) { // Eat count.
TokError("expected '>' at end of bits<n> type");
return 0;