Skip to content

LLVM assertion when initializing a constant function pointer #4522

Closed
@jdm

Description

@jdm
rusti> extern fn foopy() {}
()
rusti> const f: *u8 = foopy;
rusti: /run/media/jdm/ssd/rust/src/llvm/lib/VMCore/Globals.cpp:168: void llvm::GlobalVariable::setInitializer(llvm::Constant*): Assertion `InitVal->getType() == getType()->getElementType() && "Initializer type must match GlobalVariable type"' failed.
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions