@@ -295,7 +295,8 @@ template <class T> class OMPVarListClause : public OMPClause {
295295
296296 // / Fetches list of variables associated with this clause.
297297 MutableArrayRef<Expr *> getVarRefs () {
298- return static_cast <T *>(this )->template getTrailingObjects <Expr *>(NumVars);
298+ return static_cast <T *>(this )->template getTrailingObjectsNonStrict <Expr *>(
299+ NumVars);
299300 }
300301
301302 // / Sets the list of variables for this clause.
@@ -334,8 +335,8 @@ template <class T> class OMPVarListClause : public OMPClause {
334335
335336 // / Fetches list of all variables in the clause.
336337 ArrayRef<const Expr *> getVarRefs () const {
337- return static_cast <const T *>(this )-> template getTrailingObjects <Expr *>(
338- NumVars);
338+ return static_cast <const T *>(this )
339+ -> template getTrailingObjectsNonStrict <Expr *>( NumVars);
339340 }
340341};
341342
@@ -380,7 +381,7 @@ template <class T> class OMPDirectiveListClause : public OMPClause {
380381
381382 MutableArrayRef<OpenMPDirectiveKind> getDirectiveKinds () {
382383 return static_cast <T *>(this )
383- ->template getTrailingObjects <OpenMPDirectiveKind>(NumKinds);
384+ ->template getTrailingObjectsNonStrict <OpenMPDirectiveKind>(NumKinds);
384385 }
385386
386387 void setDirectiveKinds (ArrayRef<OpenMPDirectiveKind> DK) {
@@ -5921,15 +5922,17 @@ class OMPMappableExprListClause : public OMPVarListClause<T>,
59215922 // / Get the unique declarations that are in the trailing objects of the
59225923 // / class.
59235924 MutableArrayRef<ValueDecl *> getUniqueDeclsRef () {
5924- return static_cast <T *>(this )->template getTrailingObjects <ValueDecl *>(
5925- NumUniqueDeclarations);
5925+ return static_cast <T *>(this )
5926+ ->template getTrailingObjectsNonStrict <ValueDecl *>(
5927+ NumUniqueDeclarations);
59265928 }
59275929
59285930 // / Get the unique declarations that are in the trailing objects of the
59295931 // / class.
59305932 ArrayRef<ValueDecl *> getUniqueDeclsRef () const {
59315933 return static_cast <const T *>(this )
5932- ->template getTrailingObjects <ValueDecl *>(NumUniqueDeclarations);
5934+ ->template getTrailingObjectsNonStrict <ValueDecl *>(
5935+ NumUniqueDeclarations);
59335936 }
59345937
59355938 // / Set the unique declarations that are in the trailing objects of the
@@ -5943,15 +5946,15 @@ class OMPMappableExprListClause : public OMPVarListClause<T>,
59435946 // / Get the number of lists per declaration that are in the trailing
59445947 // / objects of the class.
59455948 MutableArrayRef<unsigned > getDeclNumListsRef () {
5946- return static_cast <T *>(this )-> template getTrailingObjects < unsigned >(
5947- NumUniqueDeclarations);
5949+ return static_cast <T *>(this )
5950+ -> template getTrailingObjectsNonStrict < unsigned >( NumUniqueDeclarations);
59485951 }
59495952
59505953 // / Get the number of lists per declaration that are in the trailing
59515954 // / objects of the class.
59525955 ArrayRef<unsigned > getDeclNumListsRef () const {
5953- return static_cast <const T *>(this )-> template getTrailingObjects < unsigned >(
5954- NumUniqueDeclarations);
5956+ return static_cast <const T *>(this )
5957+ -> template getTrailingObjectsNonStrict < unsigned >( NumUniqueDeclarations);
59555958 }
59565959
59575960 // / Set the number of lists per declaration that are in the trailing
@@ -5966,7 +5969,8 @@ class OMPMappableExprListClause : public OMPVarListClause<T>,
59665969 // / objects of the class. They are appended after the number of lists.
59675970 MutableArrayRef<unsigned > getComponentListSizesRef () {
59685971 return MutableArrayRef<unsigned >(
5969- static_cast <T *>(this )->template getTrailingObjects <unsigned >() +
5972+ static_cast <T *>(this )
5973+ ->template getTrailingObjectsNonStrict <unsigned >() +
59705974 NumUniqueDeclarations,
59715975 NumComponentLists);
59725976 }
@@ -5975,7 +5979,8 @@ class OMPMappableExprListClause : public OMPVarListClause<T>,
59755979 // / objects of the class. They are appended after the number of lists.
59765980 ArrayRef<unsigned > getComponentListSizesRef () const {
59775981 return ArrayRef<unsigned >(
5978- static_cast <const T *>(this )->template getTrailingObjects <unsigned >() +
5982+ static_cast <const T *>(this )
5983+ ->template getTrailingObjectsNonStrict <unsigned >() +
59795984 NumUniqueDeclarations,
59805985 NumComponentLists);
59815986 }
@@ -5991,13 +5996,15 @@ class OMPMappableExprListClause : public OMPVarListClause<T>,
59915996 // / Get the components that are in the trailing objects of the class.
59925997 MutableArrayRef<MappableComponent> getComponentsRef () {
59935998 return static_cast <T *>(this )
5994- ->template getTrailingObjects <MappableComponent>(NumComponents);
5999+ ->template getTrailingObjectsNonStrict <MappableComponent>(
6000+ NumComponents);
59956001 }
59966002
59976003 // / Get the components that are in the trailing objects of the class.
59986004 ArrayRef<MappableComponent> getComponentsRef () const {
59996005 return static_cast <const T *>(this )
6000- ->template getTrailingObjects <MappableComponent>(NumComponents);
6006+ ->template getTrailingObjectsNonStrict <MappableComponent>(
6007+ NumComponents);
60016008 }
60026009
60036010 // / Set the components that are in the trailing objects of the class.
0 commit comments