mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-02 21:22:44 +00:00
SDAG: Clean up a dangling node in HexagonISelDAGToDAG::SelectImpl
When we convert to the void Select interface, leaving unreferenced nodes around won't be allowed anymore. Part of llvm.org/pr26808. llvm-svn: 269355
This commit is contained in:
parent
608cb5def6
commit
d82025b133
@ -1049,7 +1049,7 @@ SDNode *HexagonDAGToDAGISel::SelectIntrinsicWOChain(SDNode *N) {
|
||||
if (isValueExtension(V, Bits, U)) {
|
||||
SDValue R = CurDAG->getNode(N->getOpcode(), SDLoc(N), N->getValueType(0),
|
||||
N->getOperand(0), U);
|
||||
ReplaceUses(N, R.getNode());
|
||||
ReplaceNode(N, R.getNode());
|
||||
return SelectCode(R.getNode());
|
||||
}
|
||||
return SelectCode(N);
|
||||
|
Loading…
x
Reference in New Issue
Block a user