Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index c089241a2f7210ff480e25c1ec70b0698c200bcc..6e80bb0c83018ede4006a339c8b8f544dd392c06 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -39,7 +39,7 @@ Schedule* RawMachineAssembler::Export() { |
// Compute the correct codegen order. |
DCHECK(schedule_->rpo_order()->empty()); |
Scheduler::ComputeSpecialRPO(zone(), schedule_); |
- // Invalidate MachineAssembler. |
+ // Invalidate RawMachineAssembler. |
Schedule* schedule = schedule_; |
schedule_ = NULL; |
return schedule; |
@@ -243,7 +243,7 @@ BasicBlock* RawMachineAssembler::CurrentBlock() { |
Node* RawMachineAssembler::MakeNode(const Operator* op, int input_count, |
Node** inputs) { |
- DCHECK(ScheduleValid()); |
+ DCHECK_NOT_NULL(schedule_); |
DCHECK(current_block_ != NULL); |
Node* node = graph()->NewNode(op, input_count, inputs); |
BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start() |