Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 96030794447e2e266c28ef0fcc60d975b9894fc5..5bd9276c272d72a743d25b3749f47ae39858bdf2 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -423,10 +423,9 @@ void InstructionSelector::VisitBlock(BasicBlock* block) { |
if (instructions_.size() == current_node_end) continue; |
// Mark source position on first instruction emitted. |
SourcePosition source_position = source_positions_->GetSourcePosition(node); |
- if (source_position.IsUnknown()) continue; |
- DCHECK(!source_position.IsInvalid()); |
- if (source_position_mode_ == kAllSourcePositions || |
- node->opcode() == IrOpcode::kCall) { |
+ if (source_position.IsKnown() && |
+ (source_position_mode_ == kAllSourcePositions || |
+ node->opcode() == IrOpcode::kCall)) { |
sequence()->SetSourcePosition(instructions_[current_node_end], |
source_position); |
} |