mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add an assertion to make sure all stdlib files are grouped.
This commit is contained in:
@@ -3604,6 +3604,7 @@ class DeclGroupNameContext {
|
||||
return NullGroupName;
|
||||
StringRef FileName = llvm::sys::path::filename(FullPath);
|
||||
auto Found = pMap->find(FileName);
|
||||
assert(Found != pMap->end() && "A source file is not grouped.");
|
||||
return Found == pMap->end() ? NullGroupName : Found->second;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user