[all-commits] [llvm/llvm-project] f4dd97: [AST] Use canonical constraint declaration for AST...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Mon Jul 4 02:43:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f4dd977537dc0fcd8605a1ce066a4c7fd271a5d7
https://github.com/llvm/llvm-project/commit/f4dd977537dc0fcd8605a1ce066a4c7fd271a5d7
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2022-07-04 (Mon, 04 Jul 2022)
Changed paths:
M clang/lib/AST/ASTContext.cpp
M clang/test/Modules/concept.cppm
Log Message:
-----------
[AST] Use canonical constraint declaration for ASTContext::getAutoType
When we do profiling in ASTContext::getAutoType, it wouldn't think about
the canonical declaration for the type constraint. It is bad since it
would cause a negative ODR mismatch while we already know the type
constraint declaration is a redeclaration for the previous one. Also it shouldn't be
bad to use the canonical declaration here.
More information about the All-commits
mailing list