[clang][NFC] simplify the unset check in `ParseLabeledStatement` (#117430)
`!isInvalid && !isUsable -> !isInvalid && !(!isInvalid && !isUnset) ->
isUnset`
It is more simple to understand.
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index f6d787a..cd45046 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -799,7 +799,7 @@
}
// If we've not parsed a statement yet, parse one now.
- if (!SubStmt.isInvalid() && !SubStmt.isUsable())
+ if (SubStmt.isUnset())
SubStmt = ParseStatement(nullptr, StmtCtx);
// Broken substmt shouldn't prevent the label from being added to the AST.