1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

allow main to have any integer type.

llvm-svn: 63743
This commit is contained in:
Chris Lattner 2009-02-04 17:48:18 +00:00
parent b3017f3e09
commit 9e3a296933

View File

@ -347,7 +347,7 @@ int ExecutionEngine::runFunctionAsMain(Function *Fn,
}
// FALLS THROUGH
case 0:
if (FTy->getReturnType() != Type::Int32Ty &&
if (!isa<IntegerType>(FTy->getReturnType()) &&
FTy->getReturnType() != Type::VoidTy) {
cerr << "Invalid return type of main() supplied\n";
abort();