This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG26e492e134c0: [HIP] Warn capture this pointer in device
lambda (authored by yaxunl).
Herald added a project: clang.
Repository:
rG LLVM Github Mon
tra accepted this revision.
tra added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/Sema/SemaCUDA.cpp:881-882
+ } else if (Capture.isThisCapture() && !LangOpts.HIP) {
+// Capture of this pointer is allowed for HIP since this pointer
tra added inline comments.
Comment at: clang/lib/Sema/SemaCUDA.cpp:881-882
+ } else if (Capture.isThisCapture() && !LangOpts.HIP) {
+// Capture of this pointer is allowed for HIP since this pointer may be
+// pointing to managed memory which is accessible on both device
yaxunl updated this revision to Diff 371363.
yaxunl marked an inline comment as done.
yaxunl retitled this revision from "[HIP] Allow capture this pointer in device
lambda" to "[HIP] Warn capture this pointer in device lambda".
yaxunl edited the summary of this revision.
CHANGES SINCE LAST ACTION