Skip to content

Commit

Permalink
[ModularFramework] Update usage of memcpy, NFC (#34687)
Browse files Browse the repository at this point in the history
We should not be passing the type to memcpy. This was not needed
originally, and the API changed to make it always infered.

modular-orig-commit: 8a7156aab2f73ad3130db58a9c9ecda4d3a533f2
  • Loading branch information
abduld authored Mar 14, 2024
1 parent 9b6ac04 commit d2ab0f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ modular update mojo
- The `__get_address_as_lvalue` magic function has been removed. You can now
get an LValue from a `Pointer` or `Reference` by using the `ptr[]` operator.

- The type parameter for the `memcpy` function is now automatically inferred.
This means that calls to `memcpy` of the form `memcpy[Dtype.xyz](...)` would
no longer work and the user would have to change the code to `memcpy(...)`.

### 🛠️ Fixed

- [#1362](https://github.com/modularml/mojo/issues/1362) - Parameter inference
Expand Down

0 comments on commit d2ab0f7

Please sign in to comment.