From 75e6f02445b570c673ed336b80a113639c411046 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 11 Mar 2008 18:04:06 +0000 Subject: [PATCH] Skip functions that return multiple values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48233 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 6783607e370..4f517e6fbf0 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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(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() && -- 2.11.0