From d1ebb4117dba0d188966581557a735ca4b89f6b8 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 20 Sep 2017 18:00:02 +0000 Subject: [PATCH] Pacify gcc's -Wnum-compare after r313775 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313779 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineOperand.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index 1878cd92437..6693ed22328 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -817,8 +817,10 @@ template <> struct DenseMapInfo { 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::MO_Empty) || + LHS.getType() == static_cast( + MachineOperand::MO_Tombstone)) return LHS.getType() == RHS.getType(); return LHS.isIdenticalTo(RHS); } -- 2.11.0