diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2022-01-24 23:49:07 -0500 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2022-01-28 16:04:52 -0500 |
commit | 8428c75da1ab3149292c255057173cb502729d92 (patch) | |
tree | 72b91178b4148756658e229e62575c0e8853bbd9 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 15a3476f3f9462a3f9f057ec626e7eaee829ed2c (diff) | |
download | llvm-8428c75da1ab3149292c255057173cb502729d92.zip llvm-8428c75da1ab3149292c255057173cb502729d92.tar.gz llvm-8428c75da1ab3149292c255057173cb502729d92.tar.bz2 |
[CUDA][HIP] Do not treat host var address as constant in device compilation
Currently clang treats host var address as constant in device compilation,
which causes const vars initialized with host var address promoted to
device variables incorrectly and results in undefined symbols.
This patch fixes that.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D118153
Fixes: SWDEV-309881
Change-Id: I0a69357063c6f8539ef259c96c250d04615f4473
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions