Skip to content

Commit f5b43df

Browse files
committed
[ASTReader] Remove assert
This assert was reportedly added to "Defensively ensure that GetExternalDeclStmt protects itself from nested deserialization". Given that this triggers without nested deserialization we should remove this assert. The assert blocks swiftlang/swift#81859 rdar://153085264
1 parent 93705c3 commit f5b43df

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8310,8 +8310,6 @@ Stmt *ASTReader::GetExternalDeclStmt(uint64_t Offset) {
83108310
Error(std::move(Err));
83118311
return nullptr;
83128312
}
8313-
assert(NumCurrentElementsDeserializing == 0 &&
8314-
"should not be called while already deserializing");
83158313
Deserializing D(this);
83168314
return ReadStmtFromStream(*Loc.F);
83178315
}

0 commit comments

Comments
 (0)