summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Debugger/SourceFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Debugger/SourceFile.cpp b/llvm/lib/Debugger/SourceFile.cpp
index 799231fc8dd..ebea307be46 100644
--- a/llvm/lib/Debugger/SourceFile.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud