- Renamed Type::isIntegral() to Type::isInteger()
- Added new method Type::isIntegral() that is the same as isInteger, but
also accepts bool.
llvm-svn: 3574
This commit is contained in:
@@ -294,8 +294,8 @@ bool Interpreter::callMainMethod(const string &Name,
|
||||
}
|
||||
// fallthrough
|
||||
case 1:
|
||||
if (!MT->getParamTypes()[0]->isIntegral()) {
|
||||
cout << "First argument of '" << Name << "' should be integral!\n";
|
||||
if (!MT->getParamTypes()[0]->isInteger()) {
|
||||
cout << "First argument of '" << Name << "' should be an integer!\n";
|
||||
return true;
|
||||
} else {
|
||||
GenericValue GV; GV.UIntVal = InputArgv.size();
|
||||
|
||||
Reference in New Issue
Block a user