[llvm-commits] [llvm] r106271 - /llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp
Dan Gohman
gohman at apple.com
Thu Jun 17 19:01:10 PDT 2010
Author: djg
Date: Thu Jun 17 21:01:10 2010
New Revision: 106271
URL: http://llvm.org/viewvc/llvm-project?rev=106271&view=rev
Log:
Handle execution entrypoints with non-integer return types.
Fix from Russel Power in PR7284.
Modified:
llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp?rev=106271&r1=106270&r2=106271&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp Thu Jun 17 21:01:10 2010
@@ -591,7 +591,7 @@
ECStack.pop_back();
if (ECStack.empty()) { // Finished main. Put result into exit code...
- if (RetTy && RetTy->isIntegerTy()) { // Nonvoid return type?
+ if (RetTy && !RetTy->isVoidTy()) { // Nonvoid return type?
ExitValue = Result; // Capture the exit value of the program
} else {
memset(&ExitValue.Untyped, 0, sizeof(ExitValue.Untyped));
More information about the llvm-commits
mailing list