From 4af5cda91d201a3133bd2c609d68418d3f3f8997 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 27 May 2021 18:09:16 -0400 Subject: [PATCH] Reuse a variable instead of duplicating strings --- compiler/gen/src/llvm/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/gen/src/llvm/build.rs b/compiler/gen/src/llvm/build.rs index ed34bfc104..41dacb9476 100644 --- a/compiler/gen/src/llvm/build.rs +++ b/compiler/gen/src/llvm/build.rs @@ -5791,7 +5791,7 @@ fn get_gxx_personality_v0<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>) -> Function None => { let personality_func = add_func( module, - "__gxx_personality_v0", + name, context.i64_type().fn_type(&[], false), Linkage::External, C_CALL_CONV, @@ -5843,7 +5843,7 @@ fn cxa_begin_catch<'a, 'ctx, 'env>( let cxa_begin_catch = add_func( module, - "__cxa_begin_catch", + name, u8_ptr.fn_type(&[u8_ptr.into()], false), Linkage::External, C_CALL_CONV,