Chromium Code Reviews| Index: src/IceOperand.cpp |
| diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp |
| index d8a754b9e1c7ea2e441979d0aaa7987ca7be8572..459410a5349dacd677e353a96f1f3d03334d15fb 100644 |
| --- a/src/IceOperand.cpp |
| +++ b/src/IceOperand.cpp |
| @@ -154,6 +154,11 @@ void Variable::setDefinition(Inst *Inst, const CfgNode *Node) { |
| DefNode = NULL; |
| } |
| +void Variable::resetDefinition() { |
| + DefNode = NULL; |
| + DefInst = NULL; |
| +} |
| + |
| void Variable::replaceDefinition(Inst *Inst, const CfgNode *Node) { |
| DefInst = NULL; |
| setDefinition(Inst, Node); |