diff options
Diffstat (limited to 'lib/Debugger/ProgramInfo.cpp')
-rw-r--r-- | lib/Debugger/ProgramInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Debugger/ProgramInfo.cpp b/lib/Debugger/ProgramInfo.cpp index 144cfeb2b3..b55606bd64 100644 --- a/lib/Debugger/ProgramInfo.cpp +++ b/lib/Debugger/ProgramInfo.cpp @@ -172,8 +172,8 @@ SourceFile &SourceFileInfo::getSourceText() const { if (SourceText == 0) { // Read the file in if we haven't already. sys::Path tmpPath; if (!Directory.empty()) - tmpPath.setDirectory(Directory); - tmpPath.appendFile(BaseName); + tmpPath.set(Directory); + tmpPath.appendComponent(BaseName); if (tmpPath.canRead()) SourceText = new SourceFile(tmpPath.toString(), Descriptor); else |