Skip to content

Commit 4793126

Browse files
authored
Merge pull request swiftlang#36889 from slavapestov/remove-commented-out-brace-stmt-assert
AST: Remove obsolete commented-out assertion in BraceStmt::create()
2 parents cf646da + ade7e5d commit 4793126

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/AST/Stmt.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,6 @@ BraceStmt *BraceStmt::create(ASTContext &ctx, SourceLoc lbloc,
155155
assert(std::none_of(elts.begin(), elts.end(),
156156
[](ASTNode node) -> bool { return node.isNull(); }) &&
157157
"null element in BraceStmt");
158-
// Uncomment the following after rdar://53254395 is done:
159-
// if (
160-
// !std::is_sorted(
161-
// elts.begin(), elts.end(),
162-
// [&](ASTNode n1, ASTNode n2) {
163-
// return !ctx.SourceMgr.isBeforeInBuffer(n2.getEndLoc(),
164-
// n1.getEndLoc());
165-
// })) {
166-
// llvm::errs() << "Brace statement elements out of order: \n";
167-
// for (auto n: elts) {
168-
// llvm::errs() << n.getOpaqueValue() << ": ";
169-
// n.dump(llvm::errs());
170-
// }
171-
// llvm_unreachable("brace elements out of order")
172-
// }
173158

174159
void *Buffer = ctx.Allocate(totalSizeToAlloc<ASTNode>(elts.size()),
175160
alignof(BraceStmt));

0 commit comments

Comments
 (0)