summaryrefslogtreecommitdiff
path: root/lib/Debugger/SourceFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Debugger/SourceFile.cpp')
-rw-r--r--lib/Debugger/SourceFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Debugger/SourceFile.cpp b/lib/Debugger/SourceFile.cpp
index 799231fc8d..ebea307be4 100644
--- a/lib/Debugger/SourceFile.cpp
+++ b/lib/Debugger/SourceFile.cpp
@@ -20,7 +20,7 @@ using namespace llvm;
///
void SourceFile::readFile() {
std::string ErrMsg;
- if (File.map(&ErrMsg))
+ if (!File.map(&ErrMsg))
throw ErrMsg;
}