kkwli0 marked an inline comment as done.
kkwli0 added inline comments.

================
Comment at: lib/Sema/SemaOpenMP.cpp:12576
 
+    if (MT == OMPDeclareTargetDeclAttr::MT_Link && isa<FunctionDecl>(ND)) {
+      Diag(Id.getLoc(), diag::err_omp_function_in_link_clause);
----------------
ABataev wrote:
> I would like to see this some in `check` functions, like 
> `checkDeclIsAllowedInOpenMPTarget` rather than here 
Sure.  I will move the check into checkDeclIsAllowedInOpenMPTarget.


https://reviews.llvm.org/D40968



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to