[llvm] r269245 - SDAG: Use ReplaceNode here, not ReplaceUses
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 15:21:50 PDT 2016
Author: bogner
Date: Wed May 11 17:21:50 2016
New Revision: 269245
URL: http://llvm.org/viewvc/llvm-project?rev=269245&view=rev
Log:
SDAG: Use ReplaceNode here, not ReplaceUses
This was a typo in an earlier commit - there's no point in keeping the
old node around here.
Noticed by Meador Inge. Thanks!
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=269245&r1=269244&r2=269245&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Wed May 11 17:21:50 2016
@@ -2150,7 +2150,7 @@ void X86DAGToDAGISel::Select(SDNode *Nod
SDValue Ops[] = {N1, InFlag};
SDNode *CNode = CurDAG->getMachineNode(Opc, dl, VTs, Ops);
- ReplaceUses(Node, CNode);
+ ReplaceNode(Node, CNode);
return;
}
More information about the llvm-commits
mailing list