From b6442a914783cb2861ff8d1cd6a3865fed29e0f7 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 23 Aug 2022 00:34:20 -0400 Subject: DebugInfo: take entire Type for function instead of by-parts --- rust/src/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/src/types.rs') diff --git a/rust/src/types.rs b/rust/src/types.rs index 4f9d8bff..37a1330b 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -954,7 +954,7 @@ impl Type { } } - pub fn function<'a, S: BnStrCompatible + Copy, T: Into>>( + pub fn function<'a, S: BnStrCompatible + Clone, T: Into>>( return_type: T, parameters: &[FunctionParameter], variable_arguments: bool, @@ -998,7 +998,7 @@ impl Type { }; unsafe { - Self::ref_from_raw(BNCreateFunctionType( + Self::ref_from_raw(BNNewTypeReference(BNCreateFunctionType( &mut return_type, &mut raw_calling_convention, raw_parameters.as_mut_ptr(), @@ -1011,7 +1011,7 @@ impl Type { 0, &mut return_regs, BNNameType::NoNameType, - )) + ))) } } -- cgit v1.3.1