Compare commits

..

2 Commits

Author SHA1 Message Date
David Mak edd9832f6c core: Refactor VarMap to IndexMap
This is the only Map I can find that preserves insertion order while
also deduplicating elements by key.
2024-03-22 15:33:58 +08:00
David Mak 393ef6098e core: Add ArrayLikeValue
For exposing LLVM values that can be accessed like an array.
2024-03-22 15:33:25 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ impl<'ctx, T, Adapted> TypedArrayLikeAdapter<'ctx, T, Adapted>
/// * `adapted` - The value to be adapted.
/// * `downcast_fn` - The function converting a [`BasicValueEnum`] into a `T`.
/// * `upcast_fn` - The function converting a T into a [`BasicValueEnum`].
fn from(
pub fn from(
adapted: Adapted,
downcast_fn: ValueDowncastFn<'ctx, T>,
upcast_fn: ValueUpcastFn<'ctx, T>,