[OPENMP] Fixed incompatibility in [Data]RecursiveASTVisitor::TraverseOMPExecutableDirective method with MSVC for range-based loops.
llvm-svn: 212599
This commit is contained in:
parent
e8c3721165
commit
e73fe94ac8
|
@ -2273,8 +2273,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {})
|
||||||
template <typename Derived>
|
template <typename Derived>
|
||||||
bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
|
bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
|
||||||
OMPExecutableDirective *S) {
|
OMPExecutableDirective *S) {
|
||||||
for (auto *C : S->clauses())
|
for (auto *C : S->clauses()) {
|
||||||
TRY_TO(TraverseOMPClause(C));
|
TRY_TO(TraverseOMPClause(C));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2295,8 +2295,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {})
|
||||||
template <typename Derived>
|
template <typename Derived>
|
||||||
bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
|
bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
|
||||||
OMPExecutableDirective *S) {
|
OMPExecutableDirective *S) {
|
||||||
for (auto *C : S->clauses())
|
for (auto *C : S->clauses()) {
|
||||||
TRY_TO(TraverseOMPClause(C));
|
TRY_TO(TraverseOMPClause(C));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue