Driver: Add test for binding of precompile; exposed bug due to my
flawed idea that llvm::sys::Path::getBasename was a version of
basename().
llvm-svn: 67153
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 5c843b0..2538ed8 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/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;