Revert "Canonicalize declaration pointers when forming APValues."
authorNico Weber <thakis@chromium.org>
Fri, 4 Sep 2020 14:13:28 +0000 (10:13 -0400)
committerNico Weber <thakis@chromium.org>
Fri, 4 Sep 2020 14:13:28 +0000 (10:13 -0400)
commit7b0332389afd705f46b02fcf87ec3414b8dece34
treee2a922a2ef53f2079b22bc31d21979d81355bf64
parent6cb54cfe0b40216f0cac03f1f70a5b0ba328d5bb
Revert "Canonicalize declaration pointers when forming APValues."

This reverts commit e6393ee813178e9d3306b8e3c6949a4f32f8a2cb.
It breaks Wunreachable for weak attributes, see
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20200831/336645.html
clang/include/clang/AST/APValue.h
clang/lib/AST/APValue.cpp
clang/lib/AST/ExprConstant.cpp
clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
clang/test/OpenMP/ordered_messages.cpp