aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver')
-rw-r--r--lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 5c843b004e..2538ed8384 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -790,7 +790,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C,
}
llvm::sys::Path BasePath(BaseInput);
- std::string BaseName(BasePath.getBasename());
+ std::string BaseName(BasePath.getLast());
// Determine what the derived output name should be.
const char *NamedOutput;