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

Richard Smith via All-commits all-commits at lists.llvm.org
Mon Oct 12 19:48:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 913f6005669cfb590c99865a90bc51ed0983d09d
      https://github.com/llvm/llvm-project/commit/913f6005669cfb590c99865a90bc51ed0983d09d
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-10-12 (Mon, 12 Oct 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/lib/CodeGen/CGExprConstant.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
    M clang/test/CodeGenCXX/weak-external.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, most recently
reverted in 9a33f027ac7d73e14ae287e78ab554142d1cbc8f due to a bug caused
by ObjCInterfaceDecls not propagating availability attributes along
their redeclaration chains; that bug was fixed in
e2d4174e9c66251d1b408234b53f53d0903c0285.




More information about the All-commits mailing list