================
@@ -17424,6 +17431,48 @@ OMPClause 
*SemaOpenMP::ActOnOpenMPThreadsetClause(OpenMPThreadsetKind Kind,
       OMPThreadsetClause(Kind, KindLoc, StartLoc, LParenLoc, EndLoc);
 }
 
+OMPClause *SemaOpenMP::ActOnOpenMPTransparentClause(Expr *ImpexTypeArg,
+                                                    SourceLocation StartLoc,
+                                                    SourceLocation LParenLoc,
+                                                    SourceLocation EndLoc) {
+  if (ImpexTypeArg->getType()->isTypedefNameType()) {
+    const clang::TypedefType *typedefType =
+        llvm::dyn_cast<clang::TypedefType>(ImpexTypeArg->getType());
+    if (typedefType) {
+      const clang::TypedefNameDecl *typedefDecl = typedefType->getDecl();
----------------
alexey-bataev wrote:

```suggestion
      const TypedefNameDecl *TypedefDecl = typedefType->getDecl();
```

https://github.com/llvm/llvm-project/pull/166810
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to