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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits