]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #105252 - bjorn3:codegen_less_pair_values, r=nagisa
authorbors <bors@rust-lang.org>
Mon, 12 Dec 2022 10:38:31 +0000 (10:38 +0000)
committerbors <bors@rust-lang.org>
Mon, 12 Dec 2022 10:38:31 +0000 (10:38 +0000)
Use struct types during codegen in less places

This makes it easier to use cg_ssa from a backend like Cranelift that doesn't have any struct types at all. After this PR struct types are still used for function arguments and return values. Removing those usages is harder but should still be doable.

1  2 
compiler/rustc_codegen_llvm/src/builder.rs
compiler/rustc_codegen_ssa/src/mir/block.rs