summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-09-20 18:00:02 +0000
committerHans Wennborg <hans@hanshq.net>2017-09-20 18:00:02 +0000
commitec64d50d218bdbc0aed7671d41099dccd4e6cfd7 (patch)
tree0bb41ffc49d7597faaa6f97256a49425046ba8c2
parentd3f9f2138d953025cf46720138ee41dd567e5b4d (diff)
downloadbcm5719-llvm-ec64d50d218bdbc0aed7671d41099dccd4e6cfd7.tar.gz
bcm5719-llvm-ec64d50d218bdbc0aed7671d41099dccd4e6cfd7.zip
Pacify gcc's -Wnum-compare after r313775
llvm-svn: 313779
-rw-r--r--llvm/include/llvm/CodeGen/MachineOperand.h6
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);
}
OpenPOWER on IntegriCloud