mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Fix a thinko in DisintegrateMERGE_VALUES. Patch by Xiaoyi Guo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a98aa6ad1e
commit
04b2c50427
@ -951,7 +951,7 @@ SDValue DAGTypeLegalizer::DisintegrateMERGE_VALUES(SDNode *N, unsigned ResNo) {
|
||||
for (unsigned i = 0, e = N->getNumValues(); i != e; ++i)
|
||||
if (i != ResNo)
|
||||
ReplaceValueWith(SDValue(N, i), SDValue(N->getOperand(i)));
|
||||
return SDValue(N, ResNo);
|
||||
return SDValue(N->getOperand(ResNo));
|
||||
}
|
||||
|
||||
/// GetSplitDestVTs - Compute the VTs needed for the low/hi parts of a type
|
||||
|
@ -153,7 +153,7 @@ private:
|
||||
|
||||
/// DisintegrateMERGE_VALUES - Replace each result of the given MERGE_VALUES
|
||||
/// node with the corresponding input operand, except for the result 'ResNo',
|
||||
/// which is returned.
|
||||
/// for which the corresponding input operand is returned.
|
||||
SDValue DisintegrateMERGE_VALUES(SDNode *N, unsigned ResNo);
|
||||
|
||||
SDValue GetVectorElementPointer(SDValue VecPtr, EVT EltVT, SDValue Index);
|
||||
|
Loading…
Reference in New Issue
Block a user