The code in TreeTransform::TransformOMPNumTeamsClause calls getDerived().RebuildOMPSimdlenClause -- this seems wrong.
template
OMPClause
TreeTransform::TransformOMPNumTeamsClause(OMPNumTeamsClause C) {
// Transform the number-of-teams expession.
ExprResult E = getDerived().TransformExpr(C->getNumTeams());
The code in TreeTransform::TransformOMPNumTeamsClause calls getDerived().RebuildOMPSimdlenClause -- this seems wrong.
template
OMPClause
TreeTransform::TransformOMPNumTeamsClause(OMPNumTeamsClause C) {
// Transform the number-of-teams expession.
ExprResult E = getDerived().TransformExpr(C->getNumTeams());
if (E.isInvalid()) return 0;
return getDerived().RebuildOMPSimdlenClause(E.take(), C->getLocStart(), C->getLocEnd()); }