diff options
author | Richard Smith <richard@metafoo.co.uk> | 2019-12-18 14:01:40 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2019-12-18 14:05:57 -0800 |
commit | 3ced23976aa8a86a17017c87821c873b4ca80bc2 (patch) | |
tree | 1a42f80c2dee147ac0b98dccbd27eae4143da3c8 /clang/lib/AST/ExprConstant.cpp | |
parent | a6d57a8cd4cfa2a8395eaa6599fc12f7509f98f0 (diff) | |
download | bcm5719-llvm-3ced23976aa8a86a17017c87821c873b4ca80bc2.tar.gz bcm5719-llvm-3ced23976aa8a86a17017c87821c873b4ca80bc2.zip |
Refactor CompareReferenceRelationship and its callers in preparation for
implementing the resolution of CWG2352.
No functionality change, except that we now convert the referent of a
reference binding to the underlying type of the reference in more cases;
we used to happen to preserve the type sugar from the referent if the
only type change was in the cv-qualifiers.
This exposed a bug in how we generate code for trivial assignment
operators: if the type sugar (particularly the may_alias attribute)
got lost during reference binding, we'd use the "wrong" TBAA information
for the load during the assignment.
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions