commit | 45f36835470dd95908d579c30ec05b923ec46fe6 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Feb 04 17:48:18 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Feb 04 17:48:18 2009 +0000 |
tree | 8f9fd5de475408e61ca6115bfc281251bd4fe20b | |
parent | 4cb16349b0a45bfdc21d69bed416e4f3e00a1196 [diff] [blame] |
allow main to have any integer type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63743 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 9fea1f5..4678d0c 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -347,7 +347,7 @@ } // 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();