mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-03 00:29:31 +00:00
No need to check isWriteable here (which isn't sufficient anyway). Just attempt
to do the operation and if it fails, oh well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29446 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8bdbb04f9b
commit
33b0e9c644
@ -187,7 +187,8 @@ private:
|
||||
|
||||
void cleanup() {
|
||||
if (!isSet(KEEP_TEMPS_FLAG)) {
|
||||
if (TempDir.isDirectory() && TempDir.canWrite())
|
||||
sys::FileStatus Status;
|
||||
if (!TempDir.getFileStatus(Status) && Status.isDir)
|
||||
TempDir.eraseFromDisk(/*remove_contents=*/true);
|
||||
} else {
|
||||
std::cout << "Temporary files are in " << TempDir << "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user