Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging a tuple causes an LLVM assertion to fail #391

Closed
lkuper opened this issue May 18, 2011 · 3 comments
Closed

Logging a tuple causes an LLVM assertion to fail #391

lkuper opened this issue May 18, 2011 · 3 comments

Comments

@lkuper
Copy link
Contributor

lkuper commented May 18, 2011

fn main() {
    auto t = tup(1, 2, 3);
    log_err t;
}

fails to compile with:

rustc: /home/lkuper/llvm/include/llvm/Support/Casting.h:202: typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X = llvm::IntegerType, Y = llvm::Type_, typename llvm::cast_retty<To, From>::ret_type = llvm::IntegerType_]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed.

@msullivan
Copy link
Contributor

This also happens with vec, tag, and rec. float compiles but doesn't log properly.

@msullivan
Copy link
Contributor

Oops. floats work fine. vec, tag, and rec actually don't work, though.

@msullivan
Copy link
Contributor

I fixed this with https://github.com/graydon/rust/pull/406. I am going to close this bug and open a new one for actually implementing it.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
add CI for mips-musl

and fix the statvfs struct for this target

r? @alexcrichton

I didn't really test the CI part but this target now passes libc-test under QEMU
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Handle indirect function malloc

* Add sprintf
calebzulawski added a commit to calebzulawski/rust that referenced this issue Feb 17, 2024
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants