[all-commits] [llvm/llvm-project] 3d5b9f: [OpenMP] Fix problems with the declare variant app...

Mike Rice via All-commits all-commits at lists.llvm.org
Fri Jan 14 11:15:16 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d5b9fb3e3cd60d3bb755e43c1abdea42d2e7580
      https://github.com/llvm/llvm-project/commit/3d5b9fb3e3cd60d3bb755e43c1abdea42d2e7580
  Author: Mike Rice <michael.p.rice at intel.com>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/test/OpenMP/declare_variant_clauses_ast_print.c
    M clang/test/OpenMP/declare_variant_clauses_messages.cpp

  Log Message:
  -----------
  [OpenMP] Fix problems with the declare variant append_args clause

Use ASTContext::getTypeDeclType() to get type of omp_interop_t since
TypeDecl::getTypeForDecl() may return null if TypeForDecl is not
setup yet.

Handle functions where the function type is under an AttributedType.

Differential Revision: https://reviews.llvm.org/D117172




More information about the All-commits mailing list