summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-09-18 03:49:06 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-09-18 03:49:06 +0000
commit22df65cb470e26607453aa2f9a9cb6eab01efbad (patch)
treeb1687f2790b185c41d42208a1424747b95dfa175
parentc35fb03661a25d07c47453489bdcb39cf7237ff8 (diff)
downloadbcm5719-llvm-22df65cb470e26607453aa2f9a9cb6eab01efbad.tar.gz
bcm5719-llvm-22df65cb470e26607453aa2f9a9cb6eab01efbad.zip
Work around MSVC parser bug by putting redundant braces around the body of
this range-based for loop. llvm-svn: 218011
-rw-r--r--clang/include/clang/AST/DataRecursiveASTVisitor.h3
-rw-r--r--clang/include/clang/AST/RecursiveASTVisitor.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DataRecursiveASTVisitor.h b/clang/include/clang/AST/DataRecursiveASTVisitor.h
index e8ef8064455..0833d7afbfc 100644
--- a/clang/include/clang/AST/DataRecursiveASTVisitor.h
+++ b/clang/include/clang/AST/DataRecursiveASTVisitor.h
@@ -2146,8 +2146,9 @@ bool RecursiveASTVisitor<Derived>::TraverseLambdaExpr(LambdaExpr *S) {
}
auto *T = Proto.getTypePtr();
- for (const auto &E : T->exceptions())
+ for (const auto &E : T->exceptions()) {
TRY_TO(TraverseType(E));
+ }
if (Expr *NE = T->getNoexceptExpr())
TRY_TO(TraverseStmt(NE));
diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h
index af0dd6dc224..5083cbf5de0 100644
--- a/clang/include/clang/AST/RecursiveASTVisitor.h
+++ b/clang/include/clang/AST/RecursiveASTVisitor.h
@@ -2168,8 +2168,9 @@ bool RecursiveASTVisitor<Derived>::TraverseLambdaExpr(LambdaExpr *S) {
}
auto *T = Proto.getTypePtr();
- for (const auto &E : T->exceptions())
+ for (const auto &E : T->exceptions()) {
TRY_TO(TraverseType(E));
+ }
if (Expr *NE = T->getNoexceptExpr())
TRY_TO(TraverseStmt(NE));
OpenPOWER on IntegriCloud