Derive Ord/hash on OperandOrAllocation.

This commit is contained in:
Chris Fallin
2021-05-03 19:18:19 -07:00
parent 49c54b6144
commit 9e7021cfd0

View File

@@ -563,7 +563,7 @@ impl Allocation {
/// A helper that wraps either an `Operand` or an `Allocation` and is
/// able to tell which it is based on the tag bits.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct OperandOrAllocation {
bits: u32,
}