aboutsummaryrefslogtreecommitdiff
path: root/tools/CIndex/CIndexDiagnostic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/CIndex/CIndexDiagnostic.cpp')
-rw-r--r--tools/CIndex/CIndexDiagnostic.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/CIndex/CIndexDiagnostic.cpp b/tools/CIndex/CIndexDiagnostic.cpp
index 6aed49eaae..f4454d46f6 100644
--- a/tools/CIndex/CIndexDiagnostic.cpp
+++ b/tools/CIndex/CIndexDiagnostic.cpp
@@ -265,6 +265,7 @@ void clang::LoadSerializedDiagnostics(const llvm::sys::Path &DiagnosticsPath,
}
SourceMgr.overrideFileContents(File, Buffer);
+ SourceMgr.createFileID(File, SourceLocation(), SrcMgr::C_User);
}
// Parse the diagnostics, emitting them one by one until we've