Index: src/compiler/register-allocator-verifier.cc |
diff --git a/src/compiler/register-allocator-verifier.cc b/src/compiler/register-allocator-verifier.cc |
index 0bc6a32d78fa9ae11ed6cedb4ae778fd7893ff1c..c2c55f52d3f97e44f4083337a3b7490b5670f673 100644 |
--- a/src/compiler/register-allocator-verifier.cc |
+++ b/src/compiler/register-allocator-verifier.cc |
@@ -470,7 +470,9 @@ void RegisterAllocatorVerifier::ValidateFinalAssessment( |
const PendingAssessment* old = assessment->original_pending_assessment(); |
CHECK_NOT_NULL(old); |
RpoNumber old_block = old->origin()->rpo_number(); |
- BlockAssessments* old_block_assessments = assessments_[old_block]; |
+ DCHECK_LE(old_block, block_id); |
+ BlockAssessments* old_block_assessments = |
+ old_block == block_id ? current_assessments : assessments_[old_block]; |
ValidatePendingAssessment(old_block, op, old_block_assessments, old, |
virtual_register); |
} |