[PATCH] D58708: [PR40778] Preserve addr space in Derived to Base cast

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 27 10:13:31 PST 2019


rjmccall added inline comments.


================
Comment at: lib/Sema/SemaExpr.cpp:2670
     } else {
       DestType = DestRecordType;
       FromRecordType = FromType;
----------------
This path (when the object is a gl-value) also needs an address-space qualifier, so you should probably add it above and then just add a pointer in the pointer case.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58708/new/

https://reviews.llvm.org/D58708





More information about the cfe-commits mailing list