mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
Skip functions that return multiple values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48233 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01c18a7275
commit
75e6f02445
@ -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() &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user