mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
Fix the index calculations for the extractvalue lowering code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f36f6d117
commit
dded0fd398
@ -2739,8 +2739,8 @@ void SelectionDAGLowering::visitExtractValue(ExtractValueInst &I) {
|
||||
// Copy out the selected value(s).
|
||||
for (unsigned i = LinearIndex; i != LinearIndex + NumValValues; ++i)
|
||||
Values[i - LinearIndex] =
|
||||
OutOfUndef ? DAG.getNode(ISD::UNDEF, Agg.Val->getValueType(i)) :
|
||||
SDOperand(Agg.Val, Agg.ResNo + i - LinearIndex);
|
||||
OutOfUndef ? DAG.getNode(ISD::UNDEF, Agg.Val->getValueType(Agg.ResNo + i)) :
|
||||
SDOperand(Agg.Val, Agg.ResNo + i);
|
||||
|
||||
setValue(&I, DAG.getNode(ISD::MERGE_VALUES,
|
||||
DAG.getVTList(&ValValueVTs[0], NumValValues),
|
||||
|
Loading…
Reference in New Issue
Block a user