diff options
| author | bors <bors@rust-lang.org> | 2025-06-25 17:33:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-06-25 17:33:39 +0000 |
| commit | d14d202262d13df896b0c624b0cec6e4bfde631a (patch) | |
| tree | 28c8fff037afdbbb9637cc28775025fe527bfe2e /compiler/rustc_codegen_gcc | |
| parent | 8cf5fad73d4e8f41863ecc3bcfa114eabc951faa (diff) | |
| parent | a46ef2d01ed9006097b0b71348d633bfb116acaa (diff) | |
| download | rust-d14d202262d13df896b0c624b0cec6e4bfde631a.tar.gz rust-d14d202262d13df896b0c624b0cec6e4bfde631a.zip | |
Auto merge of #142879 - Mark-Simulacrum:opt-cleanup, r=WaffleLapkin
Remove dead instructions in terminate blocks Terminate blocks look pretty in the IR I've looked at, so no actual perf delta from this. But it seems reasonable to note produce unused IR.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/builder.rs b/compiler/rustc_codegen_gcc/src/builder.rs index a2e34d1f8fb..7852aebe0c2 100644 --- a/compiler/rustc_codegen_gcc/src/builder.rs +++ b/compiler/rustc_codegen_gcc/src/builder.rs @@ -1591,9 +1591,9 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> { (value1, value2) } - fn filter_landing_pad(&mut self, pers_fn: RValue<'gcc>) -> (RValue<'gcc>, RValue<'gcc>) { + fn filter_landing_pad(&mut self, pers_fn: RValue<'gcc>) { // TODO(antoyo): generate the correct landing pad - self.cleanup_landing_pad(pers_fn) + self.cleanup_landing_pad(pers_fn); } #[cfg(feature = "master")] |
