ABataev added inline comments.

================
Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:448
       return;
-    if (E->getCastKind() == CK_ArrayToPointerDecay) {
-      const bool SavedAllEscaped = AllEscaped;
----------------
I think you need to check that the array is allocated in the parallel context, 
otherwise there might be a crash, if it is allocated in the target context and 
many threads would like to access it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148805/new/

https://reviews.llvm.org/D148805

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D148805: [C... Gheorghe-Teodor Bercea via Phabricator via cfe-commits
    • [PATCH] D14880... Alexey Bataev via Phabricator via cfe-commits
    • [PATCH] D14880... Gheorghe-Teodor Bercea via Phabricator via cfe-commits
    • [PATCH] D14880... Johannes Doerfert via Phabricator via cfe-commits

Reply via email to