Skip to content

getAlignmentInfo segfault on union(enum) #713

Closed
@tiehuis

Description

@tiehuis

Latest Zig master, using LLVM-5.0.1.

const PartialInst = union(enum) {
    Compiled,
};

test "a" {
    var r: PartialInst = undefined;
}

Backtrace

#0  0x00007ffff4bca568 in llvm::DataLayout::getAlignmentInfo(llvm::AlignTypeEnum, unsigned int, bool, llvm::Type*) const () from /usr/lib/libLLVM-5.0.so
#1  0x0000000000000000 in ?? ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions