Skip to content

LLVM assert with classes, regions and slices #2748

Closed
@brson

Description

@brson
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-lifetimesArea: Lifetimes / regionsI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions