Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index a318dd02ae8c19bad8b6f0cf7804a27af9ffac1c..b751e2d5b5232644c90e6a2b2f436e8c40eac9bb 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -332,7 +332,11 @@ Node* RawMachineAssembler::MakeNode(const Operator* op, int input_count, |
return graph()->NewNodeUnchecked(op, input_count, inputs); |
} |
-RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } |
+RawMachineLabel::~RawMachineLabel() { |
+ // If this DCHECK fails, it means that the label has been bound but it's not |
+ // used, or the opposite. This would cause the register allocator to crash. |
+ DCHECK_EQ(bound_, used_); |
+} |
} // namespace compiler |
} // namespace internal |