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 | 39bc61c97951138132bb6dbd9f94fd1b51b229bb (patch) | |
tree | 8f9fd5de475408e61ca6115bfc281251bd4fe20b /lib/ExecutionEngine | |
parent | 187895ec22d2e538cd22f4f0eda89d9e83c62ab3 (diff) | |
download | external_llvm-39bc61c97951138132bb6dbd9f94fd1b51b229bb.tar.gz external_llvm-39bc61c97951138132bb6dbd9f94fd1b51b229bb.tar.bz2 external_llvm-39bc61c97951138132bb6dbd9f94fd1b51b229bb.zip |
allow main to have any integer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 9fea1f5753..4678d0c183 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/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(); |