diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-11 18:04:06 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-11 18:04:06 +0000 |
commit | 70c238a1d88f4442c1dc84efdc9a8b4d889ebde8 (patch) | |
tree | c9abed5be4c6c23498c425c6fe8de1df331da6e2 /llvm/lib | |
parent | 1b12647544225ddb165f3a02f93cc766c8515df6 (diff) | |
download | bcm5719-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.cpp | 3 |
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() && |