1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix Regression/TableGen/2006-09-18-LargeInt.td

llvm-svn: 30472
This commit is contained in:
Chris Lattner 2006-09-18 22:28:27 +00:00
parent d3b2f9e7cc
commit b54881691d
4 changed files with 8 additions and 6 deletions

View File

@ -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>("+

View File

@ -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;

View File

@ -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;

View File

@ -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;