[PATCH] D12871: [OpenMP] Target directive host codegen - rebased

Samuel Antao via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 16 15:55:26 PDT 2015


sfantao added inline comments.

================
Comment at: lib/CodeGen/CGStmtOpenMP.cpp:121-123
@@ -103,4 +120,5 @@
+            ArgLVal.getAddress(), ArgLVal.getType()->castAs<ReferenceType>());
       auto *ExprArg =
           EmitLoadOfLValue(ArgLVal, SourceLocation()).getScalarVal();
       auto VAT = FD->getCapturedVLAType();
       VLASizeMap[VAT->getSizeExpr()] = ExprArg;
----------------
I am actually doing `ArgLVal.getType()` instead  `FD->getType()`. FD doesn't have a reference type here.


http://reviews.llvm.org/D12871





More information about the cfe-commits mailing list