[all-commits] [llvm/llvm-project] 5a42c9: [clang] Make variables of undeduced types to have ...

Aleksandr Platonov via All-commits all-commits at lists.llvm.org
Fri Oct 7 05:43:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a42c90b778c65238a54f0f1d8c8d6b35e2f6007
      https://github.com/llvm/llvm-project/commit/5a42c90b778c65238a54f0f1d8c8d6b35e2f6007
  Author: Aleksandr Platonov <platonov.aleksandr at huawei.com>
  Date:   2022-10-07 (Fri, 07 Oct 2022)

  Changed paths:
    M clang/lib/AST/Decl.cpp
    M clang/test/Sema/tls_alignment.cpp

  Log Message:
  -----------
  [clang] Make variables of undeduced types to have dependent alignment

Without this patch `VarDecl::hasDependent()` checks only undeduced auto types, so can give false negatives result for other undeduced types.
This lead to crashes in sequence `!VarDecl::hasDepentent()` => `getDeclAlign()`.

It seems this problem appeared since D105380

Reviewed By: mizvekov

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




More information about the All-commits mailing list