Skip to content

Commit 177a564

Browse files
committed
[6.1] [AST] Remove assert from ModuleDecl::getFiles
This can be hit for `IsNonUserModuleRequest`. On main this is properly fixed by enforcing that a ModuleDecl's files are immutable after construction. rdar://137769081
1 parent 3232c04 commit 177a564

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/swift/AST/Module.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ class ModuleDecl
399399
void setBypassResilience() { BypassResilience = true; }
400400

401401
ArrayRef<FileUnit *> getFiles() {
402-
ASSERT(!Files.empty() || failedToLoad());
403402
return Files;
404403
}
405404
ArrayRef<const FileUnit *> getFiles() const {

0 commit comments

Comments
 (0)