We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6c9769 commit d0f8c96Copy full SHA for d0f8c96
lib/Parse/Parser.cpp
@@ -1194,6 +1194,8 @@ bool Parser::shouldReturnSingleExpressionElement(ArrayRef<ASTNode> Body) {
1194
while (auto *ICD = dyn_cast<IfConfigDecl>(D)) {
1195
auto ACE = ICD->getActiveClauseElements();
1196
if (ACE.size() == 1) {
1197
+ assert(Body.back() == ACE.back() &&
1198
+ "active clause not found in body");
1199
return true;
1200
} else if (ACE.size() == 2) {
1201
if (auto *ND = ACE.front().dyn_cast<Decl *>()) {
0 commit comments