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
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 5c843b0..2538ed8 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -790,7 +790,7 @@
}
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;