summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-04-27 20:33:30 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-04-27 20:33:30 +0000
commite6d0073fa91e430d0d72deda69d7e3b933817bf2 (patch)
treec0c253fa2a9f8b7c68e172627c6c06f679dff28a /clang/lib/CodeGen/CGObjCGNU.cpp
parent3b928af28fc467164ac88d02a551f9ae1f24e1c7 (diff)
downloadbcm5719-llvm-e6d0073fa91e430d0d72deda69d7e3b933817bf2.tar.gz
bcm5719-llvm-e6d0073fa91e430d0d72deda69d7e3b933817bf2.zip
Fixed message send to void (broken by my last commit - GNU runtime).
llvm-svn: 102459
Diffstat (limited to 'clang/lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index db857f7b1f8..a621c7e303c 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -571,7 +571,8 @@ CGObjCGNU::GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
// to be on the stack / in those registers at the time) on most platforms,
// and generates a SegV on SPARC. With LLVM it corrupts the stack.
bool isPointerSizedReturn = false;
- if (ResultType->isAnyPointerType() || ResultType->isIntegralType())
+ if (ResultType->isAnyPointerType() || ResultType->isIntegralType() ||
+ ResultType->isVoidType())
isPointerSizedReturn = true;
llvm::BasicBlock *startBB = 0;
OpenPOWER on IntegriCloud