[PATCH] D59988: [PR41276] Generate address space cast of 'this' for objects attributed by an address space in C++
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 29 04:53:35 PDT 2019
Anastasia marked an inline comment as done.
Anastasia added inline comments.
================
Comment at: lib/CodeGen/CGClass.cpp:2025
+ ThisPtr =
+ Builder.CreatePointerBitCastOrAddrSpaceCast(This.getPointer(), NewType);
}
----------------
I am a bit unsure if `performAddrSpaceCast` should be used, but considering that we know that we are not casting a constant it should be fine?
If not any suggestions how to propagate `LangAS` of 'this' here. Some thoughts I have are:
- Try to list the conversion up in the call stack
- Pass `LangAS` all the way to here
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59988/new/
https://reviews.llvm.org/D59988
More information about the cfe-commits
mailing list