[all-commits] [llvm/llvm-project] 2946b2: [Clang] Fix crash when checking misaligned member ...

Jun Zhang via All-commits all-commits at lists.llvm.org
Tue Oct 18 06:07:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2946b252993d9b4c12479bf318b648bed2c0427a
      https://github.com/llvm/llvm-project/commit/2946b252993d9b4c12479bf318b648bed2c0427a
  Author: Jun Zhang <jun at junz.org>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/SemaCXX/misaligned-member-with-depdent-type.cpp

  Log Message:
  -----------
  [Clang] Fix crash when checking misaligned member with dependent type

If the type is dependent, we should just discard it and not checking its
alignment as it doesn't exisit yet.
Fixes https://github.com/llvm/llvm-project/issues/58370

Differential Revision: https://reviews.llvm.org/D136018




More information about the All-commits mailing list