diff options
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 74ba5208c4..752466b0b3 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -388,6 +388,7 @@ void HInstructionList::RemoveInstruction(HInstruction* instruction) { } void HInstruction::ReplaceWith(HInstruction* other) { + DCHECK(other != nullptr); for (HUseIterator<HInstruction> it(GetUses()); !it.Done(); it.Advance()) { HUseListNode<HInstruction>* current = it.Current(); HInstruction* user = current->GetUser(); |