forked from OSchip/llvm-project
[Legalizer] Fix wrong operand in split vector helper
This should be a typo introduced in D69275, which may cause an unknown segment fault in getNode. Reviewed By: uweigand Differential Revision: https://reviews.llvm.org/D83376
This commit is contained in:
parent
24aa4efffd
commit
4254ed5c32
|
@ -2610,9 +2610,9 @@ SDValue DAGTypeLegalizer::SplitVecOp_TruncateHelper(SDNode *N) {
|
|||
SDValue Chain;
|
||||
if (N->isStrictFPOpcode()) {
|
||||
HalfLo = DAG.getNode(N->getOpcode(), DL, {HalfVT, MVT::Other},
|
||||
{N->getOperand(0), HalfLo});
|
||||
{N->getOperand(0), InLoVec});
|
||||
HalfHi = DAG.getNode(N->getOpcode(), DL, {HalfVT, MVT::Other},
|
||||
{N->getOperand(0), HalfHi});
|
||||
{N->getOperand(0), InHiVec});
|
||||
// Legalize the chain result - switch anything that used the old chain to
|
||||
// use the new one.
|
||||
Chain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other, HalfLo.getValue(1),
|
||||
|
|
Loading…
Reference in New Issue