aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Debugger
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Debugger')
-rw-r--r--lib/Debugger/ProgramInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Debugger/ProgramInfo.cpp b/lib/Debugger/ProgramInfo.cpp
index 144cfeb..b55606b 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