]> git.lizzy.rs Git - rust.git/commit
Use `&mut Bx` more.
authorNicholas Nethercote <n.nethercote@gmail.com>
Wed, 9 Nov 2022 00:04:10 +0000 (11:04 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Wed, 16 Nov 2022 04:46:39 +0000 (15:46 +1100)
commit68194aa8d5c513fad53147e46144684f14f99463
tree570ca2a062c4f3938e2f4df15e384005e8d384a9
parenta00f8ba7fcac1b27341679c51bf5a3271fa82df3
Use `&mut Bx` more.

For the next commit, `FunctionCx::codegen_*_terminator` need to take a
`&mut Bx` instead of consuming a `Bx`. This triggers a cascade of
similar changes across multiple functions. The resulting code is more
concise and replaces many `&mut bx` expressions with `bx`.
compiler/rustc_codegen_gcc/src/builder.rs
compiler/rustc_codegen_llvm/src/builder.rs
compiler/rustc_codegen_ssa/src/mir/block.rs
compiler/rustc_codegen_ssa/src/mir/rvalue.rs
compiler/rustc_codegen_ssa/src/mir/statement.rs
compiler/rustc_codegen_ssa/src/traits/builder.rs