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:
parent
b3017f3e09
commit
9e3a296933
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user