Skip to content

llvm: Stored value type does not match pointer operand type! #30494

Closed
@yorkie

Description

@yorkie

Hey Rust Team,

I got this error at compiling time:

Stored value type does not match pointer operand type!
  store { i64 } %0, i64* %2, align 8
 i64LLVM ERROR: Broken function found, compilation aborted!
Could not compile `rustjs`.

Caused by:
  Process didn't exit successfully: `rustc src/lib.rs --crate-name rustjs --crate-type lib -g --out-dir /Users/yorkieliu/workspace/rust.js/target/debug --emit=dep-info,link -L dependency=/Users/yorkieliu/workspace/rust.js/target/debug -L dependency=/Users/yorkieliu/workspace/rust.js/target/debug/deps --extern clap=/Users/yorkieliu/workspace/rust.js/target/debug/deps/libclap-b681d5dfd49166f9.rlib --extern rustc_serialize=/Users/yorkieliu/workspace/rust.js/target/debug/deps/librustc_serialize-3c33cb2a40992011.rlib --extern libc=/Users/yorkieliu/workspace/rust.js/target/debug/deps/liblibc-dd3420cb049117bb.rlib --extern env_logger=/Users/yorkieliu/workspace/rust.js/target/debug/deps/libenv_logger-2fedde90a22290a6.rlib -l rustjs_deps` (exit code: 1)
make: *** [rustjs] Error 101

With my personal rust module: https://github.com/yorkie/rust.js, I found the same issue at #19571.

I used the latest 1.5.0, however it worked at 1.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions