Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 493778a823c1bb596925e4d0254b01b012738c7b..c9f10f1bfe0b16a12ead6a3d5191a66c45117d2e 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -615,9 +615,9 @@ void BytecodeGraphBuilder::VisitBytecodes() { |
set_bytecode_iterator(&iterator); |
while (!iterator.done()) { |
int current_offset = iterator.current_offset(); |
- if (analysis.is_reachable(current_offset)) { |
- EnterAndExitExceptionHandlers(current_offset); |
- SwitchToMergeEnvironment(current_offset); |
+ EnterAndExitExceptionHandlers(current_offset); |
+ SwitchToMergeEnvironment(current_offset); |
+ if (environment() != nullptr) { |
BuildLoopHeaderEnvironment(current_offset); |
switch (iterator.current_bytecode()) { |