You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code crashed when run on an NVIDIA or AMD GPU due to a missing address space cast https://godbolt.org/z/3vx6avrT6.
structS {
int x;
};
[[clang::loader_uninitialized]] S [[clang::address_space(3)]] s;
int &lookup(int S::*in) {
return s.*in;
}
The generated IR accesses the global s but does not emit an address space cast to the generic address space. We do not emit an address space cast, because it is missing from the AST like should normally be applied prior to the ReturnStmt.