diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2022-03-16 13:26:25 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2022-03-16 17:04:28 -0500 |
commit | 07b176646134c3d88a4cecef5e0058e2de6b2409 (patch) | |
tree | 565899fccfe5e660659be2459f9b4139afb45df2 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | ff9e596b1006fb01fb999c300a298b8e43cfd0ee (diff) | |
download | llvm-07b176646134c3d88a4cecef5e0058e2de6b2409.zip llvm-07b176646134c3d88a4cecef5e0058e2de6b2409.tar.gz llvm-07b176646134c3d88a4cecef5e0058e2de6b2409.tar.bz2 |
[OpenMP][FIX] Allow device constructors for AMD GPU
In AMD GPU device code the globals are in AS(1). Before, we crashed if
the global was a structure. Now we simply cast away the AS before we
generate the code to initialize the global.
Differential Revision: https://reviews.llvm.org/D121837
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions