diff options
Diffstat (limited to 'llvm/lib/Debugger/SourceFile.cpp')
| -rw-r--r-- | llvm/lib/Debugger/SourceFile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Debugger/SourceFile.cpp b/llvm/lib/Debugger/SourceFile.cpp index 222cdfa26aa..799231fc8dd 100644 --- a/llvm/lib/Debugger/SourceFile.cpp +++ b/llvm/lib/Debugger/SourceFile.cpp @@ -19,7 +19,9 @@ using namespace llvm; /// readFile - Load Filename /// void SourceFile::readFile() { - File.map(); + std::string ErrMsg; + if (File.map(&ErrMsg)) + throw ErrMsg; } /// calculateLineOffsets - Compute the LineOffset vector for the current file. |

