[PATCH] D22690: [OpenMP] Add support for mapping array sections through pointer references.

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 24 20:33:11 PDT 2016


ABataev accepted this revision.
ABataev added a comment.
This revision is now accepted and ready to land.

LG with a nit


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:5280
@@ -5279,5 +5279,3 @@
         BP = CGF.EmitLoadOfPointerLValue(PtrAddr.getAddress(),
-                                         I->getAssociatedDeclaration()
-                                             ->getType()
-                                             ->getAs<PointerType>())
+                                         Ty->getAs<PointerType>())
                  .getPointer();
----------------
getAs -> castAs


https://reviews.llvm.org/D22690





More information about the cfe-commits mailing list