Index: src/interpreter/bytecode-peephole-optimizer.cc |
diff --git a/src/interpreter/bytecode-peephole-optimizer.cc b/src/interpreter/bytecode-peephole-optimizer.cc |
index 4e0b58c9b09315f6a87f201550cbaba0e48c8d47..1abd2a9ef7f03504768e09fb2388b1d04a8f8e48 100644 |
--- a/src/interpreter/bytecode-peephole-optimizer.cc |
+++ b/src/interpreter/bytecode-peephole-optimizer.cc |
@@ -96,7 +96,7 @@ bool BytecodePeepholeOptimizer::LastBytecodePutsNameInAccumulator() const { |
void BytecodePeepholeOptimizer::TryToRemoveLastExpressionPosition( |
const BytecodeNode* const current) { |
- if (current->source_info().is_statement() && |
+ if (current->source_info().is_valid() && |
last_.source_info().is_expression() && |
Bytecodes::IsWithoutExternalSideEffects(last_.bytecode())) { |
// The last bytecode has been marked as expression. It has no |