summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Debugger/ProgramInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Debugger/ProgramInfo.cpp')
-rw-r--r--llvm/lib/Debugger/ProgramInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp
index a702829c121..144cfeb2b3e 100644
--- a/llvm/lib/Debugger/ProgramInfo.cpp
+++ b/llvm/lib/Debugger/ProgramInfo.cpp
@@ -174,7 +174,7 @@ SourceFile &SourceFileInfo::getSourceText() const {
if (!Directory.empty())
tmpPath.setDirectory(Directory);
tmpPath.appendFile(BaseName);
- if (tmpPath.readable())
+ if (tmpPath.canRead())
SourceText = new SourceFile(tmpPath.toString(), Descriptor);
else
SourceText = new SourceFile(BaseName, Descriptor);
OpenPOWER on IntegriCloud