add Addr::AttVar to address ordering
This commit is contained in:
@@ -747,7 +747,7 @@ impl PartialOrd<Ref> for Addr {
|
||||
Some(Ordering::Less)
|
||||
}
|
||||
},
|
||||
&Addr::HeapCell(h) =>
|
||||
&Addr::HeapCell(h) | &Addr::AttrVar(h, _) =>
|
||||
match r {
|
||||
&Ref::StackCell(..) => Some(Ordering::Less),
|
||||
&Ref::HeapCell(h1) => h.partial_cmp(&h1)
|
||||
|
||||
Reference in New Issue
Block a user