[llvm-commits] [llvm] r63743 -	/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
    Chris Lattner 
    sabre at nondot.org
       
    Wed Feb  4 09:48:18 PST 2009
    
    
  
Author: lattner
Date: Wed Feb  4 11:48:18 2009
New Revision: 63743
URL: http://llvm.org/viewvc/llvm-project?rev=63743&view=rev
Log:
allow main to have any integer type.
Modified:
    llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?rev=63743&r1=63742&r2=63743&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp Wed Feb  4 11:48:18 2009
@@ -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();
    
    
More information about the llvm-commits
mailing list