[all-commits] [llvm/llvm-project] 905b9c: Canonicalize declaration pointers when forming APV...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Sep 16 18:11:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 905b9ca26c94fa86339451a528cedde5004fc1bb
      https://github.com/llvm/llvm-project/commit/905b9ca26c94fa86339451a528cedde5004fc1bb
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-09-16 (Wed, 16 Sep 2020)

  Changed paths:
    M clang/include/clang/AST/APValue.h
    M clang/lib/AST/APValue.cpp
    M clang/lib/AST/Decl.cpp
    M clang/lib/AST/DeclBase.cpp
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
    M clang/test/OpenMP/ordered_messages.cpp

  Log Message:
  -----------
  Canonicalize declaration pointers when forming APValues.

References to different declarations of the same entity aren't different
values, so shouldn't have different representations.

Recommit of e6393ee813178e9d3306b8e3c6949a4f32f8a2cb with fixed
handling for weak declarations. We now look for attributes on the most
recent declaration when determining whether a declaration is weak.


  Commit: 7337f296194483e0959ff980049e2835e226f396
      https://github.com/llvm/llvm-project/commit/7337f296194483e0959ff980049e2835e226f396
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-09-16 (Wed, 16 Sep 2020)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaCXX/cxx11-inheriting-ctors.cpp

  Log Message:
  -----------
  PR47555: Inheriting constructors are implicitly definable.

Don't forget to define them if they're constexpr and used inside a
template; we might try to evaluate a call to them before the template is
instantiated.


Compare: https://github.com/llvm/llvm-project/compare/344a3d0bc0fb...7337f2961944


More information about the All-commits mailing list