[PATCH] D129608: [Clang][OpenMP] Fix segmentation fault when data field is used in is_device_pt.

Jennifer Yu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 11 12:05:23 PDT 2022


jyu2 added inline comments.


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:9076
+    // DeclComponentLists for generating components info.
+    auto It = DevPointersMap.find(VD);
+    if (It != DevPointersMap.end())
----------------
ABataev wrote:
> VD is still nullptr here, why do we need to lookup for it?
VD is nullptr, it represent of this pointer.  And it is DevPointersMap.  Thanks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129608



More information about the cfe-commits mailing list