aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorJun Zhang <jun@junz.org>2022-04-16 11:27:18 +0800
committerJun Zhang <jun@junz.org>2022-04-16 11:31:40 +0800
commit7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9 (patch)
treeab9acfc45dd646535ba945d2ecba0bef56f5f281 /clang/lib/Parse/ParseStmt.cpp
parent9f5f2eb2a1085d49afbf9e6912086c6a3b5e6a95 (diff)
downloadllvm-7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9.zip
llvm-7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9.tar.gz
llvm-7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9.tar.bz2
Add some helpers to better check Scope's kind. NFC
Signed-off-by: Jun Zhang <jun@junz.org>
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index d2c88ce..ce5541a 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -2105,7 +2105,7 @@ StmtResult Parser::ParseForStatement(SourceLocation *TrailingElseLoc) {
// Enter a break / continue scope, if we didn't already enter one while
// parsing the second part.
- if (!(getCurScope()->getFlags() & Scope::ContinueScope))
+ if (!getCurScope()->isContinueScope())
getCurScope()->AddFlags(Scope::BreakScope | Scope::ContinueScope);
// Parse the third part of the for statement.