diff options
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineOperand.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h index 1878cd92437..6693ed22328 100644 --- a/llvm/include/llvm/CodeGen/MachineOperand.h +++ b/llvm/include/llvm/CodeGen/MachineOperand.h @@ -817,8 +817,10 @@ template <> struct DenseMapInfo<MachineOperand> { return hash_value(MO); } static bool isEqual(const MachineOperand &LHS, const MachineOperand &RHS) { - if (LHS.getType() == MachineOperand::MO_Empty || - LHS.getType() == MachineOperand::MO_Tombstone) + if (LHS.getType() == static_cast<MachineOperand::MachineOperandType>( + MachineOperand::MO_Empty) || + LHS.getType() == static_cast<MachineOperand::MachineOperandType>( + MachineOperand::MO_Tombstone)) return LHS.getType() == RHS.getType(); return LHS.isIdenticalTo(RHS); } |

