about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2025-06-22 11:38:25 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2025-06-22 11:38:47 -0400
commita46ef2d01ed9006097b0b71348d633bfb116acaa (patch)
tree76f0915297cf03276a8eca8c1229b9983dc1035c /compiler/rustc_codegen_gcc
parentd4e1159b8c97478778b09a4cc1c7adce5653b8bf (diff)
downloadrust-a46ef2d01ed9006097b0b71348d633bfb116acaa.tar.gz
rust-a46ef2d01ed9006097b0b71348d633bfb116acaa.zip
Remove dead instructions in terminate blocks
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/builder.rs4
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")]