Address review comments.

This commit is contained in:
Chris Fallin
2021-08-31 17:56:06 -07:00
parent 6389071e09
commit 6f0893d69d
3 changed files with 20 additions and 5 deletions

View File

@@ -41,8 +41,8 @@ impl<'a, F: Function> Env<'a, F> {
}
// If either bundle is already assigned (due to a pinned vreg), don't merge.
if !self.bundles[from.index()].allocation.is_none()
|| !self.bundles[to.index()].allocation.is_none()
if self.bundles[from.index()].allocation.is_some()
|| self.bundles[to.index()].allocation.is_some()
{
log::trace!("one of the bundles is already assigned (pinned)");
return false;