diff options
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 2 | ||||
-rw-r--r-- | utils/TableGen/FileLexer.cpp.cvs | 4 | ||||
-rw-r--r-- | utils/TableGen/FileLexer.l | 4 | ||||
-rw-r--r-- | utils/TableGen/FileLexer.l.cvs | 4 |
4 files changed, 8 insertions, 6 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 4d4fa9dabd..c9f7897b3f 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -2373,6 +2373,8 @@ public: } } else if (IntInit *II = dynamic_cast<IntInit*>(Child->getLeafValue())) { + if (II->getValue() == 2147483647) + std::cerr << "HERE!\n"; emitCheck("isa<ConstantSDNode>(" + RootName + utostr(OpNo) + ")"); unsigned CTmp = TmpNo++; emitCode("int64_t CN"+utostr(CTmp)+" = cast<ConstantSDNode>("+ diff --git a/utils/TableGen/FileLexer.cpp.cvs b/utils/TableGen/FileLexer.cpp.cvs index dffd220a44..b806f065e4 100644 --- a/utils/TableGen/FileLexer.cpp.cvs +++ b/utils/TableGen/FileLexer.cpp.cvs @@ -535,8 +535,8 @@ std::vector<std::string> IncludeDirectories; /// static int ParseInt(const char *Str) { if (Str[0] == '0' && Str[1] == 'b') - return strtol(Str+2, 0, 2); - return strtol(Str, 0, 0); + return strtoll(Str+2, 0, 2); + return strtoll(Str, 0, 0); } static int CommentDepth = 0; diff --git a/utils/TableGen/FileLexer.l b/utils/TableGen/FileLexer.l index 7c9151f00f..c1a7ec06ad 100644 --- a/utils/TableGen/FileLexer.l +++ b/utils/TableGen/FileLexer.l @@ -42,8 +42,8 @@ std::vector<std::string> IncludeDirectories; /// static int ParseInt(const char *Str) { if (Str[0] == '0' && Str[1] == 'b') - return strtol(Str+2, 0, 2); - return strtol(Str, 0, 0); + return strtoll(Str+2, 0, 2); + return strtoll(Str, 0, 0); } static int CommentDepth = 0; diff --git a/utils/TableGen/FileLexer.l.cvs b/utils/TableGen/FileLexer.l.cvs index 7c9151f00f..c1a7ec06ad 100644 --- a/utils/TableGen/FileLexer.l.cvs +++ b/utils/TableGen/FileLexer.l.cvs @@ -42,8 +42,8 @@ std::vector<std::string> IncludeDirectories; /// static int ParseInt(const char *Str) { if (Str[0] == '0' && Str[1] == 'b') - return strtol(Str+2, 0, 2); - return strtol(Str, 0, 0); + return strtoll(Str+2, 0, 2); + return strtoll(Str, 0, 0); } static int CommentDepth = 0; |