diff options
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 6373414..ce0b072 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -464,7 +464,7 @@ bool CompilerInstance::InitializeSourceManager(llvm::StringRef InputFile,    // Figure out where to get and map in the main file.    if (InputFile != "-") {      const FileEntry *File = FileMgr.getFile(InputFile); -    if (File) SourceMgr.createMainFileID(File, SourceLocation()); +    if (File) SourceMgr.createMainFileID(File);      if (SourceMgr.getMainFileID().isInvalid()) {        Diags.Report(diag::err_fe_error_reading) << InputFile;        return false;  | 
