[all-commits] [llvm/llvm-project] 01adf9: [clang] Add the check of membership in decltype fo...

limingliv via All-commits all-commits at lists.llvm.org
Sat Jan 28 21:51:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01adf96ebc8608bcdda0cacc303035b2e60ccb46
      https://github.com/llvm/llvm-project/commit/01adf96ebc8608bcdda0cacc303035b2e60ccb46
  Author: Liming Liu <gangliugangliu.ml at outlook.com>
  Date:   2023-01-29 (Sun, 29 Jan 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/DeclCXX.h
    M clang/lib/AST/CXXInheritance.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaCXX/decltype.cpp

  Log Message:
  -----------
  [clang] Add the check of membership in decltype for the issue #58674

D137531 had once fixed the issue. However, it caused a crash during compiling
llvm/unittests/IR/PatternMatch.cpp in stage-2. The reason is the predicator
isDerivedFrom does not consider independent types if the derived type is
dependent.

This patch improves D137531 by adding an option to make isDerivedFrom consider
independent types.

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




More information about the All-commits mailing list