about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-06-18 15:31:01 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-06-18 15:31:01 +0200
commit864840512b7b605c0e44bfdbf29feb24c79608b3 (patch)
tree7a8f47302a9efc517c790d26f20723cc9f4db6f6 /compiler/rustc_codegen_gcc
parentc48d8d4d800df8a59d412c5c4299c8fadcd039e9 (diff)
downloadrust-864840512b7b605c0e44bfdbf29feb24c79608b3.tar.gz
rust-864840512b7b605c0e44bfdbf29feb24c79608b3.zip
GCC backend: Remove `add_eval` if no function is created
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/allocator.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/allocator.rs b/compiler/rustc_codegen_gcc/src/allocator.rs
index 9e54ba05a9b..cf8aa500c77 100644
--- a/compiler/rustc_codegen_gcc/src/allocator.rs
+++ b/compiler/rustc_codegen_gcc/src/allocator.rs
@@ -158,7 +158,6 @@ fn create_wrapper_function(
         }
     } else {
         assert!(output.is_none());
-        block.add_eval(None, ret);
         block.end_with_void_return(None);
     }