[all-commits] [llvm/llvm-project] b1a55d: Fix a crash on targets where __bf16 isn't supported

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed May 4 13:46:16 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1a55d0895249a493da5a442e44ee0a846410e88
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-05-04 (Wed, 04 May 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Sema/SemaType.cpp
    A clang/test/Sema/vector-decl-crash.c

  Log Message:
  Fix a crash on targets where __bf16 isn't supported

We'd nondeterministically assert (and later crash) when calculating the size or
alignment of a __bf16 type when the type isn't supported on a target because of
reading uninitialized values. Now we check whether the type is supported first.

Fixes #50171

More information about the All-commits mailing list