mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
Simplify a few uses of remove_filename by using parent_path instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -262,8 +262,7 @@ public:
|
||||
if (!getCacheFilename(ModuleID, CacheName))
|
||||
return;
|
||||
if (!CacheDir.empty()) { // Create user-defined cache dir.
|
||||
SmallString<128> dir(CacheName);
|
||||
sys::path::remove_filename(dir);
|
||||
SmallString<128> dir(sys::path::parent_path(CacheName));
|
||||
sys::fs::create_directories(Twine(dir));
|
||||
}
|
||||
std::error_code EC;
|
||||
|
||||
Reference in New Issue
Block a user