[OPENMP] Fixed incompatibility in [Data]RecursiveASTVisitor::TraverseOMPExecutableDirective method with MSVC for range-based loops.

llvm-svn: 212599
This commit is contained in:
Alexey Bataev 2014-07-09 09:33:29 +00:00
parent e8c3721165
commit e73fe94ac8
2 changed files with 4 additions and 2 deletions

View File

@ -2273,8 +2273,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {})
template <typename Derived>
bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
OMPExecutableDirective *S) {
for (auto *C : S->clauses())
for (auto *C : S->clauses()) {
TRY_TO(TraverseOMPClause(C));
}
return true;
}

View File

@ -2295,8 +2295,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {})
template <typename Derived>
bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
OMPExecutableDirective *S) {
for (auto *C : S->clauses())
for (auto *C : S->clauses()) {
TRY_TO(TraverseOMPClause(C));
}
return true;
}