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

LLVM assert with classes, regions and slices #2748

Closed
brson opened this issue Jun 29, 2012 · 1 comment
Closed

LLVM assert with classes, regions and slices #2748

brson opened this issue Jun 29, 2012 · 1 comment
Labels
A-codegen Area: Code generation A-lifetimes Area: lifetime related I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone

Comments

@brson
Copy link
Contributor

brson commented Jun 29, 2012

class CMap/& {
    let buf: [u8]/&;

    new(buf: [u8]/&) {
        self.buf = buf;
    }
}

fn main() { }
rustc: /home/banderson/Dev/rust2/src/llvm/lib/VMCore/Instructions.cpp:1056: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.
@ghost ghost assigned catamorphism Jun 29, 2012
@msullivan
Copy link
Contributor

Same assert with:

fn thing(x: &[int]) -> &[int] { x }
fn main() { }

@ghost ghost assigned msullivan Jul 5, 2012
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Jan 6, 2023
Ignore symbol shim clash when symbol is provided by compiler_builtins

When this happens, we ignore the symbol from `compiler_builtins`
in favor of Miri's builtin support.

This allows Miri to target platforms like wasm32-unknown-unknown,
where functions like `memcmp` are provided by `compiler_builtins`.
RalfJung pushed a commit to RalfJung/rust that referenced this issue Jan 9, 2023
Ignore symbol shim clash when symbol is provided by compiler_builtins

When this happens, we ignore the symbol from `compiler_builtins`
in favor of Miri's builtin support.

This allows Miri to target platforms like wasm32-unknown-unknown,
where functions like `memcmp` are provided by `compiler_builtins`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-lifetimes Area: lifetime related I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

3 participants