Index: src/interpreter/control-flow-builders.cc |
diff --git a/src/interpreter/control-flow-builders.cc b/src/interpreter/control-flow-builders.cc |
index 0e71b96cce7b09e1b4b4a6ac663637ddca3a1364..866c6a3446c7943e2cd651830164851c52f9a4e1 100644 |
--- a/src/interpreter/control-flow-builders.cc |
+++ b/src/interpreter/control-flow-builders.cc |
@@ -55,8 +55,10 @@ void LoopBuilder::LoopHeader(ZoneVector<BytecodeLabel>* additional_labels) { |
// and misplaced between the headers. |
DCHECK(break_labels_.empty() && continue_labels_.empty()); |
builder()->Bind(&loop_header_); |
- for (auto& label : *additional_labels) { |
- builder()->Bind(&label); |
+ if (additional_labels != nullptr) { |
+ for (auto& label : *additional_labels) { |
+ builder()->Bind(&label); |
+ } |
} |
} |