Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

[Bug] Update deprecated llvm-sys APIs to new one #434

Closed
ksolana opened this issue Mar 13, 2024 · 1 comment
Closed

[Bug] Update deprecated llvm-sys APIs to new one #434

ksolana opened this issue Mar 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ksolana
Copy link
Collaborator

ksolana commented Mar 13, 2024

Depends on #431. There are warnings like:

running 34 tests
warning: use of deprecated function `llvm_sys::core::LLVMArrayType`: LLVMArrayType is deprecated in favor of the API accurate LLVMArrayType2
   --> language/solana/move-to-solana/src/stackless/llvm.rs:143:23
    |
143 |         unsafe { Type(LLVMArrayType(ll_elt_ty.0, len as libc::c_uint)) }
    |                       ^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: use of deprecated function `llvm_sys::core::LLVMConstArray`: LLVMConstArray is deprecated in favor of the API accurate LLVMConstArray2
   --> language/solana/move-to-solana/src/stackless/llvm.rs:208:24
    |
208 |             ArrayValue(LLVMConstArray(llty.0, vals.as_mut_ptr(), vals.len() as u32))
    |                        ^^^^^^^^^^^^^^

warning: use of deprecated function `llvm_sys::core::LLVMConstArray`: LLVMConstArray is deprecated in favor of the API accurate LLVMConstArray2
   --> language/solana/move-to-solana/src/stackless/llvm.rs:215:24
    |
215 |             ArrayValue(LLVMConstArray(
    |                        ^^^^^^^^^^^^^^

@ksolana ksolana added the bug Something isn't working label Mar 13, 2024
@ksolana
Copy link
Collaborator Author

ksolana commented Mar 14, 2024

Fixed in: #435

@ksolana ksolana closed this as completed Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant