[all-commits] [llvm/llvm-project] e16675: [C++20] [Modules] [Concepts] Recognize same concep...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue Dec 7 23:14:17 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e166755a691921612274fdad945d3a6b05d00439
      https://github.com/llvm/llvm-project/commit/e166755a691921612274fdad945d3a6b05d00439
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2021-12-08 (Wed, 08 Dec 2021)

  Changed paths:
    M clang/lib/Serialization/ASTReaderDecl.cpp
    A clang/test/Modules/Inputs/concept/A.cppm
    A clang/test/Modules/Inputs/concept/foo.h
    A clang/test/Modules/concept.cppm

  Log Message:
  -----------
  [C++20] [Modules] [Concepts] Recognize same concepts more precisely in Serialization

The compiler would judge two concepts is same by their addresses.
However, when we use modules, the addresses wouldn't be the same all the
time since one is parsed in their TU and another is imported in another
TU.
This patch fixes this by using isSameEntity to judge the two concepts.

Reviewed By: rsmith

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




More information about the All-commits mailing list