HomePhabricator

[OpenMP] Fix problems with the declare variant append_args clause

Authored by mikerice on Wed, Jan 12, 3:34 PM.

Description

[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