diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 02:00:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 02:00:31 +0000 |
commit | 5796bf4913832bd1165c3ff5e04838d150de1c4c (patch) | |
tree | 24b413b935426c85de9367690ba33c2c40996e1d /lib/Driver/Driver.cpp | |
parent | c2fdb0780b071d7e8771f970630ac57fd393d983 (diff) |
Driver: Add test for binding of precompile; exposed bug due to my
flawed idea that llvm::sys::Path::getBasename was a version of
basename().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 2 |
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; |