diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-03-24 21:04:06 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-03-24 21:04:06 +0000 |
| commit | 023da0d43a96d25a2a66e1bd4d97b38e953351a4 (patch) | |
| tree | 7411b3614e7587ae4db11a5621e9246cd0767da1 /clang/tools | |
| parent | 9b37b1d6bbaa04ce8c4adf628cc4fa92994176a6 (diff) | |
| download | bcm5719-llvm-023da0d43a96d25a2a66e1bd4d97b38e953351a4.tar.gz bcm5719-llvm-023da0d43a96d25a2a66e1bd4d97b38e953351a4.zip | |
Make sure that we have File IDs for all of the unsaved files before we
deserialize diagnostics.
llvm-svn: 99426
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/CIndex/CIndexDiagnostic.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/CIndex/CIndexDiagnostic.cpp b/clang/tools/CIndex/CIndexDiagnostic.cpp index 6aed49eaaee..f4454d46f67 100644 --- a/clang/tools/CIndex/CIndexDiagnostic.cpp +++ b/clang/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 |

