Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
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

Description

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(
    |                        ^^^^^^^^^^^^^^

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions