Add TypedSelect support to Singlepass + LLVM

Missed this in the reftypes PR
This commit is contained in:
Mark McCaskey
2021-04-28 09:58:19 -07:00
parent 626fb5ca5e
commit c634cdcc2e
2 changed files with 6 additions and 2 deletions

View File

@@ -5525,7 +5525,9 @@ impl<'a> FuncGen<'a> {
}
}
}
Operator::Select => {
// `TypedSelect` must be used for extern refs so ref counting should
// be done with TypedSelect. But otherwise they're the same.
Operator::TypedSelect { .. } | Operator::Select => {
let cond = self.pop_value_released();
let v_b = self.pop_value_released();
let v_a = self.pop_value_released();