Skip functions that return multiple values.

llvm-svn: 48233
This commit is contained in:
Devang Patel 2008-03-11 18:04:06 +00:00
parent 1b12647544
commit 70c238a1d8
1 changed files with 3 additions and 0 deletions

View File

@ -8428,6 +8428,9 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
const FunctionType *FT = Callee->getFunctionType(); const FunctionType *FT = Callee->getFunctionType();
const Type *OldRetTy = Caller->getType(); 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... // Check to see if we are changing the return type...
if (OldRetTy != FT->getReturnType()) { if (OldRetTy != FT->getReturnType()) {
if (Callee->isDeclaration() && !Caller->use_empty() && if (Callee->isDeclaration() && !Caller->use_empty() &&