[PATCH] D111115: [OPENMP] Fix assert of "Unable to find base lambda address" from adjustMemberOfForLambdaCaptures.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 5 13:50:47 PDT 2021


ABataev added inline comments.


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:8451-8454
+      ArrayRef<OpenMPMapModifierKind> MapModifiers;
+      ArrayRef<OpenMPMotionModifierKind> MotionModifiers;
+      return getMapTypeBits(
+          I->getSecond(), MapModifiers, MotionModifiers, false,
----------------
ABataev wrote:
> No need to create empty ArrayRefs, just pass `llvm::None` instead.
What if there are modifiers in the clause?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111115



More information about the cfe-commits mailing list