about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-16 13:02:20 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-16 13:02:20 +0200
commitf0648966e4aa48d83bbd395c513ad1febbb5a8e6 (patch)
tree52102082f7bebfd99c5020849fb3715497cb163e
parent6ba33f5e1189a5ae58fb96ce3546e76b13d090f5 (diff)
downloadrust-f0648966e4aa48d83bbd395c513ad1febbb5a8e6.tar.gz
rust-f0648966e4aa48d83bbd395c513ad1febbb5a8e6.zip
Add missing `add_eval` to generate `__rdl_oom` in the alloc error handler
-rw-r--r--src/allocator.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/allocator.rs b/src/allocator.rs
index f4ebd42ee2d..279b7dd2fb9 100644
--- a/src/allocator.rs
+++ b/src/allocator.rs
@@ -152,6 +152,7 @@ fn create_wrapper_function(
     if output.is_some() {
         block.end_with_return(None, ret);
     } else {
+        block.add_eval(None, ret);
         block.end_with_void_return(None);
     }