Compare commits
2 Commits
bd43e5eb35
...
0c0c2ebc8b
Author | SHA1 | Date |
---|---|---|
David Mak | 0c0c2ebc8b | |
David Mak | 5576087164 |
|
@ -326,10 +326,7 @@ impl<'ctx> ArrayLikeIndexer<'ctx> for NDArrayDataProxy<'ctx, '_> {
|
||||||
)
|
)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
};
|
||||||
|
// TODO: Current implementation is transparent
|
||||||
// Current implementation is transparent - The returned pointer type is
|
|
||||||
// already cast into the expected type, allowing for immediately
|
|
||||||
// load/store.
|
|
||||||
ctx.builder
|
ctx.builder
|
||||||
.build_pointer_cast(
|
.build_pointer_cast(
|
||||||
ptr,
|
ptr,
|
||||||
|
@ -360,10 +357,7 @@ impl<'ctx> ArrayLikeIndexer<'ctx> for NDArrayDataProxy<'ctx, '_> {
|
||||||
);
|
);
|
||||||
|
|
||||||
let ptr = unsafe { self.ptr_offset_unchecked(ctx, generator, idx, name) };
|
let ptr = unsafe { self.ptr_offset_unchecked(ctx, generator, idx, name) };
|
||||||
|
// TODO: Current implementation is transparent
|
||||||
// Current implementation is transparent - The returned pointer type is
|
|
||||||
// already cast into the expected type, allowing for immediately
|
|
||||||
// load/store.
|
|
||||||
ctx.builder
|
ctx.builder
|
||||||
.build_pointer_cast(
|
.build_pointer_cast(
|
||||||
ptr,
|
ptr,
|
||||||
|
|
Loading…
Reference in New Issue