Index: src/compiler/s390/instruction-selector-s390.cc |
diff --git a/src/compiler/s390/instruction-selector-s390.cc b/src/compiler/s390/instruction-selector-s390.cc |
index 25b214d09dcf45280442e31f52f138928e025774..27bb6c6f10933ac3313dc8ec7e0904e870cf58f8 100644 |
--- a/src/compiler/s390/instruction-selector-s390.cc |
+++ b/src/compiler/s390/instruction-selector-s390.cc |
@@ -569,6 +569,9 @@ void VisitBin32op(InstructionSelector* selector, Node* node, |
if (cont->IsDeoptimize()) { |
selector->EmitDeoptimize(opcode, output_count, outputs, input_count, inputs, |
cont->reason(), cont->frame_state()); |
+ } else if (cont->IsTrap()) { |
+ inputs[input_count++] = g.UseImmediate(cont->trap_id()); |
+ selector->Emit(opcode, output_count, outputs, input_count, inputs); |
} else { |
selector->Emit(opcode, output_count, outputs, input_count, inputs); |
} |