mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
quick fix for PR13006, will check in testcase later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8d14c4ca3
commit
74ee0ef6a7
@ -332,7 +332,9 @@ bool llvm::isInTailCallPosition(ImmutableCallSite CS, Attributes CalleeRetAttr,
|
|||||||
// see if each is transparent.
|
// see if each is transparent.
|
||||||
for (unsigned i = 0, e =cast<StructType>(RetVal->getType())->getNumElements();
|
for (unsigned i = 0, e =cast<StructType>(RetVal->getType())->getNumElements();
|
||||||
i != e; ++i) {
|
i != e; ++i) {
|
||||||
const Value *InScalar = getNoopInput(FindInsertedValue(RetVal, i), TLI);
|
const Value *InScalar = FindInsertedValue(RetVal, i);
|
||||||
|
if (InScalar == 0) return false;
|
||||||
|
InScalar = getNoopInput(InScalar, TLI);
|
||||||
|
|
||||||
// If the scalar value being inserted is an extractvalue of the right index
|
// If the scalar value being inserted is an extractvalue of the right index
|
||||||
// from the call, then everything is good.
|
// from the call, then everything is good.
|
||||||
|
Loading…
Reference in New Issue
Block a user