Skip to content

clang -fsanitize=alignment crashes with __builtin_assume_aligned #57169

Closed
@m-gupta

Description

@m-gupta
// clang -c -fsanitize=alignment test.c
int main ()
{
(void) __builtin_assume_aligned("", 1);
  return 0;
}
llvm/llvm-project/clang/include/clang/AST/Type.h:691: const ExtQualsTypeCommonBase *clang::QualType::getCommonPtr() const: Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.

@vitalybuka can you please check?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:codegenIR generation bugs: mangling, exceptions, etc.crashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions