diff options
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
| -rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index bf3b43b816f1..de9de6ff463c 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -414,8 +414,9 @@ class OMPClauseProfiler : public ConstOMPClauseVisitor<OMPClauseProfiler> { public: OMPClauseProfiler(StmtProfiler *P) : Profiler(P) { } -#define OMP_CLAUSE_CLASS(Enum, Str, Class) void Visit##Class(const Class *C); -#include "llvm/Frontend/OpenMP/OMPKinds.def" +#define GEN_CLANG_CLAUSE_CLASS +#define CLAUSE_CLASS(Enum, Str, Class) void Visit##Class(const Class *C); +#include "llvm/Frontend/OpenMP/OMP.inc" void VistOMPClauseWithPreInit(const OMPClauseWithPreInit *C); void VistOMPClauseWithPostUpdate(const OMPClauseWithPostUpdate *C); }; @@ -2193,6 +2194,8 @@ void StmtProfiler::VisitTemplateArgument(const TemplateArgument &Arg) { break; case TemplateArgument::Declaration: + VisitType(Arg.getParamTypeForDecl()); + // FIXME: Do we need to recursively decompose template parameter objects? VisitDecl(Arg.getAsDecl()); break; @@ -2201,8 +2204,8 @@ void StmtProfiler::VisitTemplateArgument(const TemplateArgument &Arg) { break; case TemplateArgument::Integral: - Arg.getAsIntegral().Profile(ID); VisitType(Arg.getIntegralType()); + Arg.getAsIntegral().Profile(ID); break; case TemplateArgument::Expression: |
