AMDGPU: Use return value of MorphNodeTo

llvm-svn: 319704
This commit is contained in:
Matt Arsenault 2017-12-04 22:18:22 +00:00
parent 45cf85b415
commit e6667ded4d
1 changed files with 1 additions and 3 deletions

View File

@ -356,9 +356,7 @@ SDNode *AMDGPUDAGToDAGISel::glueCopyToM0(SDNode *N) const {
Ops.push_back(N->getOperand(i));
}
Ops.push_back(Glue);
CurDAG->MorphNodeTo(N, N->getOpcode(), N->getVTList(), Ops);
return N;
return CurDAG->MorphNodeTo(N, N->getOpcode(), N->getVTList(), Ops);
}
static unsigned selectSGPRVectorRegClassID(unsigned NumVectorElts) {