spv-in: Allow branch weights in OpBranchConditional

This commit is contained in:
João Capucho
2021-12-15 21:35:19 +00:00
committed by Dzmitry Malyshau
parent 9c75f3cdce
commit cf0c31cc85

View File

@@ -2832,6 +2832,11 @@ impl<I: Iterator<Item = u32>> Parser<I> {
reject,
});
// Consume branch weights
for _ in 4..inst.wc {
let _ = self.next()?;
}
return Ok(());
}
Op::Switch => {