llvm-svn: 49524
This commit is contained in:
Gabor Greif 2008-04-11 09:34:57 +00:00
parent 15e930588a
commit f6552899f9

View File

@ -3507,7 +3507,7 @@ void SelectionDAG::ReplaceAllUsesOfValueWith(SDOperand From, SDOperand To,
for (; Op != E; ++Op) {
if (*Op == From) {
From.Val->removeUser(Op-User->op_begin(), User);
*Op = To;
*Op = To;
Op->setUser(User);
To.Val->addUser(Op-User->op_begin(), User);
}