mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
sil-opt: implement partial AST verification
... and use it to parallelize the parse_stdlib.sil test, which was taking too long. Swift SVN r25295
This commit is contained in:
@@ -1503,8 +1503,9 @@ Identifier ModuleFile::getDiscriminatorForPrivateValue(const ValueDecl *D) {
|
||||
|
||||
void ModuleFile::verify() const {
|
||||
#ifndef NDEBUG
|
||||
const auto &Context = getContext();
|
||||
for (const Serialized<Decl*> &next : Decls)
|
||||
if (next.isComplete())
|
||||
if (next.isComplete() && swift::shouldVerify(next, Context))
|
||||
swift::verify(next);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user