Add an assertion to make sure all stdlib files are grouped.

This commit is contained in:
Xi Ge
2016-02-20 13:02:51 -08:00
parent 70e4fdc293
commit 0934cebb61

View File

@@ -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;
}
};