Skip to content

Commit

Permalink
Add uncommitted fix for previous.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfallin committed Sep 29, 2023
1 parent 1e6d4ff commit 0427e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cranelift/codegen/src/machinst/vcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ impl<I: VCodeInst> VRegAllocator<I> {
/// Allocate a fresh ValueRegs.
pub fn alloc(&mut self, ty: Type) -> CodegenResult<ValueRegs<Reg>> {
if self.deferred_error.is_some() {
return Err(self.deferred_error.unwrap());
return Err(CodegenError::CodeTooLarge);
}
let v = self.next_vreg;
let (regclasses, tys) = I::rc_for_type(ty)?;
Expand Down

0 comments on commit 0427e7a

Please sign in to comment.