We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e26485 commit 90926fdCopy full SHA for 90926fd
crates/rustc_codegen_spirv/src/builder/format_args_decompiler.rs
@@ -236,7 +236,11 @@ impl<'tcx> DecodedFormatArgs<'tcx> {
236
}
237
};
238
let mut spill_value_to_local = |value: SpirvValue| {
239
- let ptr = builder.typed_alloca(value.ty, Align::ONE);
+ let size = builder
240
+ .lookup_type(value.ty)
241
+ .sizeof(builder)
242
+ .expect("panic argument should have a sized type");
243
+ let ptr = builder.alloca(size, Align::ONE);
244
builder.store(value, ptr, Align::ONE);
245
match ptr.kind {
246
SpirvValueKind::Def(id) => Some(id),
0 commit comments