diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-04 17:48:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-04 17:48:18 +0000 |
commit | 370ec10dad9fb523e472afeda2fd7d20b3db6a72 (patch) | |
tree | 0ae1e277823abb6219cb1341268f26fb8981daac /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | a2794dba04e644a69806583c72e386fe457918db (diff) | |
download | bcm5719-llvm-370ec10dad9fb523e472afeda2fd7d20b3db6a72.tar.gz bcm5719-llvm-370ec10dad9fb523e472afeda2fd7d20b3db6a72.zip |
allow main to have any integer type.
llvm-svn: 63743
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 9fea1f5753f..4678d0c1830 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -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(); |