summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-11 18:04:06 +0000
committerDevang Patel <dpatel@apple.com>2008-03-11 18:04:06 +0000
commit70c238a1d88f4442c1dc84efdc9a8b4d889ebde8 (patch)
treec9abed5be4c6c23498c425c6fe8de1df331da6e2 /llvm/lib
parent1b12647544225ddb165f3a02f93cc766c8515df6 (diff)
downloadbcm5719-llvm-70c238a1d88f4442c1dc84efdc9a8b4d889ebde8.tar.gz
bcm5719-llvm-70c238a1d88f4442c1dc84efdc9a8b4d889ebde8.zip
Skip functions that return multiple values.
llvm-svn: 48233
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 6783607e370..4f517e6fbf0 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -8428,6 +8428,9 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
const FunctionType *FT = Callee->getFunctionType();
const Type *OldRetTy = Caller->getType();
+ if (isa<StructType>(FT->getReturnType()))
+ return false; // TODO: Handle multiple return values.
+
// Check to see if we are changing the return type...
if (OldRetTy != FT->getReturnType()) {
if (Callee->isDeclaration() && !Caller->use_empty() &&
OpenPOWER on IntegriCloud