We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfee35 commit ada22c8Copy full SHA for ada22c8
clang/include/clang/Basic/SourceManager.h
@@ -831,6 +831,7 @@ class SourceManager : public RefCountedBase<SourceManager> {
831
FileID createFileID(const FileEntry *SourceFile, SourceLocation IncludePos,
832
SrcMgr::CharacteristicKind FileCharacter,
833
int LoadedID = 0, unsigned LoadedOffset = 0) {
834
+ assert(SourceFile && "Null source file!");
835
const SrcMgr::ContentCache *IR =
836
getOrCreateContentCache(SourceFile, isSystem(FileCharacter));
837
assert(IR && "getOrCreateContentCache() cannot return NULL");
0 commit comments