Index: src/compiler/register-allocator-verifier.cc |
diff --git a/src/compiler/register-allocator-verifier.cc b/src/compiler/register-allocator-verifier.cc |
index dabfd59ef61d4d0c0e1a60500acbd0e9a54ef12e..ac29fc8328d11602236c8ab2f5c8ab685489ed1e 100644 |
--- a/src/compiler/register-allocator-verifier.cc |
+++ b/src/compiler/register-allocator-verifier.cc |
@@ -276,8 +276,10 @@ class RegisterAllocatorVerifier::OutgoingMapping : public ZoneObject { |
auto* moves = move->move_operands(); |
for (auto i = moves->begin(); i != moves->end(); ++i) { |
if (i->IsEliminated()) continue; |
+ CHECK(i->source()->kind() != InstructionOperand::INVALID); |
auto cur = locations()->find(i->source()); |
CHECK(cur != locations()->end()); |
+ if (i->destination()->kind() == InstructionOperand::INVALID) continue; |
to_insert.insert(std::make_pair(i->destination(), cur->second)); |
} |
// Drop current mappings. |