================
@@ -2769,6 +2772,8 @@ class CodeGenFunction : public CodeGenTypeCache {
 
   LValue MakeAddrLValue(Address Addr, QualType T, LValueBaseInfo BaseInfo,
                         TBAAAccessInfo TBAAInfo) {
+    if (CGM.isInvariantAddressSpace(T.getAddressSpace()))
----------------
arsenm wrote:

Will this do the right thing in the cuda_constant case? Is this looking at the 
type of the access or the underlying object?

https://github.com/llvm/llvm-project/pull/218356
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to