================ @@ -388,9 +387,7 @@ template <class T> class OMPDirectiveListClause : public OMPClause { assert( DK.size() == NumKinds && "Number of directive kinds is not the same as the preallocated buffer"); - std::copy(DK.begin(), DK.end(), - static_cast<T *>(this) - ->template getTrailingObjects<OpenMPDirectiveKind>()); + std::copy(DK.begin(), DK.end(), getDirectiveKinds().begin()); ---------------- jurahul wrote:
Thanks, yeah some of these might have sneaked in but I'll do the rest in a follow on https://github.com/llvm/llvm-project/pull/144432 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits