================
@@ -1741,6 +1742,61 @@ UnaryExprOrTypeTraitExpr::UnaryExprOrTypeTraitExpr(
   setDependence(computeDependence(this));
 }
 
+static const ValueDecl *getAddrSpaceOfEntity(const Expr *E) {
----------------
AaronBallman wrote:

Should this be looking through other kinds of expressions? e.g.,
```
#define FOO(X) _Generic(X, typeof_unqual(X) : X)
__device__ int i;
static_assert(__addrspaceof(FOO(i)) == __ADDRSPACE_GLOBAL);
```

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

Reply via email to