From 70bca801ab3e71d735dd80f3e6174068076b1148 Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Tue, 8 Nov 2022 12:42:20 -0800 Subject: [PATCH] cranelift: Resize with `types::INVALID` isntead of `types::I8` (#5227) --- cranelift/codegen/src/machinst/vcode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/codegen/src/machinst/vcode.rs b/cranelift/codegen/src/machinst/vcode.rs index 6e4aca8080..c0423e2a26 100644 --- a/cranelift/codegen/src/machinst/vcode.rs +++ b/cranelift/codegen/src/machinst/vcode.rs @@ -1408,7 +1408,7 @@ impl VRegAllocator { /// Set the type of this virtual register. pub fn set_vreg_type(&mut self, vreg: VirtualReg, ty: Type) { if self.vreg_types.len() <= vreg.index() { - self.vreg_types.resize(vreg.index() + 1, ir::types::I8); + self.vreg_types.resize(vreg.index() + 1, ir::types::INVALID); } self.vreg_types[vreg.index()] = ty; if is_reftype(ty) {