diff options
| author | Ryan Snyder <ryan@vector35.com> | 2024-05-01 08:58:39 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2024-05-01 08:58:39 -0400 |
| commit | 6b268f83d6b496b2314501d5e3d03c03857573b1 (patch) | |
| tree | abd56bb55c0516abb0770c6b50bb43c1eb3d0258 /rust/src/architecture.rs | |
| parent | e0fb8752878a5edecf5d2d768d4f9571ca9e74d7 (diff) | |
| parent | 562fbfae8aa17a2f3758710b23ec25e828d16cd6 (diff) | |
Merge branch 'name-and-type-transparent' of github.com:rbran/binaryninja-api into dev
Diffstat (limited to 'rust/src/architecture.rs')
| -rw-r--r-- | rust/src/architecture.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index a03f28d0..b2413d39 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -313,7 +313,7 @@ pub trait Intrinsic: Sized + Clone + Copy { fn id(&self) -> u32; /// Reeturns the list of the input names and types for this intrinsic. - fn inputs(&self) -> Vec<NameAndType<String>>; + fn inputs(&self) -> Vec<Ref<NameAndType>>; /// Returns the list of the output types for this intrinsic. fn outputs(&self) -> Vec<Conf<Ref<Type>>>; @@ -650,7 +650,7 @@ impl Intrinsic for UnusedIntrinsic { fn id(&self) -> u32 { unreachable!() } - fn inputs(&self) -> Vec<NameAndType<String>> { + fn inputs(&self) -> Vec<Ref<NameAndType>> { unreachable!() } fn outputs(&self) -> Vec<Conf<Ref<Type>>> { @@ -992,7 +992,7 @@ impl Intrinsic for crate::architecture::CoreIntrinsic { self.1 } - fn inputs(&self) -> Vec<NameAndType<String>> { + fn inputs(&self) -> Vec<Ref<NameAndType>> { let mut count: usize = 0; unsafe { @@ -2423,7 +2423,7 @@ where let inputs = intrinsic.inputs(); let mut res = Vec::with_capacity(inputs.len()); for input in inputs { - res.push(input.into_raw()); + res.push(unsafe { Ref::into_raw(input) }.into_raw()); } unsafe { |
