Skip to content

Commit 8624b17

Browse files
committed
NFC: check ModuleDecl file invariant always
1 parent b02b94c commit 8624b17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/AST/Module.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "swift/AST/Import.h"
2626
#include "swift/AST/LookupKinds.h"
2727
#include "swift/AST/Type.h"
28+
#include "swift/Basic/Assertions.h"
2829
#include "swift/Basic/BasicSourceInfo.h"
2930
#include "swift/Basic/Compiler.h"
3031
#include "swift/Basic/Debug.h"
@@ -388,7 +389,7 @@ class ModuleDecl
388389
void setBypassResilience() { BypassResilience = true; }
389390

390391
ArrayRef<FileUnit *> getFiles() {
391-
assert(!Files.empty() || failedToLoad());
392+
ASSERT(!Files.empty() || failedToLoad());
392393
return Files;
393394
}
394395
ArrayRef<const FileUnit *> getFiles() const {

0 commit comments

Comments
 (0)