[clang] [NFC][Clang][AST] Adopt simplified `getTrailingObjects` in AST (PR #144432)
Rahul Joshi via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 19 09:24:59 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list