[all-commits] [llvm/llvm-project] 26e492: [HIP] Warn capture this pointer in device lambda
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Wed Sep 8 10:45:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 26e492e134c006c63b3d9f9f9eabdeba014b1d2c
https://github.com/llvm/llvm-project/commit/26e492e134c006c63b3d9f9f9eabdeba014b1d2c
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2021-09-08 (Wed, 08 Sep 2021)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaCUDA.cpp
M clang/test/SemaCUDA/lambda.cu
Log Message:
-----------
[HIP] Warn capture this pointer in device lambda
HIP currently diagnose capture of this pointer in device lambda in
host member functions. If this pointer points to managed memory,
it can be used in both device and host functions. Under this
situation, capturing this pointer in device lambda functions
in host member functions is valid usage. Change the diagnostic
about capturing this pointer to warning.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D108493
More information about the All-commits
mailing list