[PATCH] D58634: [PR40778] Generate address space conversion when binding reference to a temporary value in different address space
Bevin Hansson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 06:20:33 PST 2019
ebevhan added inline comments.
================
Comment at: lib/Sema/SemaInit.cpp:4806-4808
+ if ((RefRelationship == Sema::Ref_Related &&
+ (T1CVRQuals | T2CVRQuals) != T1CVRQuals) ||
+ !T1Quals.isAddressSpaceSupersetOf(T2Quals)) {
----------------
Sorry for the really late comment on this, but shouldn't this be:
```
if (RefRelationship == Sema::Ref_Related &&
((T1CVRQuals | T2CVRQuals) != T1CVRQuals ||
!T1Quals.isAddressSpaceSupersetOf(T2Quals))) {
```
Currently, this fails on AS qualification regardless of ref-compatibility.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58634/new/
https://reviews.llvm.org/D58634
More information about the cfe-commits
mailing list