Skip to content

[Clang] __builtin_bswapg crashes on bool #168690

@philnik777

Description

@philnik777
auto test(bool c) {
  return __builtin_bswapg(c);
}

causes Clang to crash with an assertions build: https://godbolt.org/z/7PePeTKGY

This should just be the identity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:codegenIR generation bugs: mangling, exceptions, etc.confirmedVerified by a second partycrash-on-valid

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions