diff options
Diffstat (limited to 'compiler/optimizing/nodes_shared.h')
-rw-r--r-- | compiler/optimizing/nodes_shared.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes_shared.h b/compiler/optimizing/nodes_shared.h index 27e610328f..b91cc3e5fd 100644 --- a/compiler/optimizing/nodes_shared.h +++ b/compiler/optimizing/nodes_shared.h @@ -47,7 +47,8 @@ class HMultiplyAccumulate final : public HExpression<3> { bool CanBeMoved() const override { return true; } bool InstructionDataEquals(const HInstruction* other) const override { - return op_kind_ == other->AsMultiplyAccumulate()->op_kind_; + // TODO: Remove "OrNull". + return op_kind_ == other->AsMultiplyAccumulateOrNull()->op_kind_; } InstructionKind GetOpKind() const { return op_kind_; } @@ -215,7 +216,8 @@ class HDataProcWithShifterOp final : public HExpression<2> { bool IsClonable() const override { return true; } bool CanBeMoved() const override { return true; } bool InstructionDataEquals(const HInstruction* other_instr) const override { - const HDataProcWithShifterOp* other = other_instr->AsDataProcWithShifterOp(); + // TODO: Remove "OrNull". + const HDataProcWithShifterOp* other = other_instr->AsDataProcWithShifterOpOrNull(); return instr_kind_ == other->instr_kind_ && op_kind_ == other->op_kind_ && shift_amount_ == other->shift_amount_; |