[llvm-commits] CVS: llvm/tools/llvmc/CompilerDriver.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 1 11:12:45 PDT 2006
Changes in directory llvm/tools/llvmc:
CompilerDriver.cpp updated: 1.36 -> 1.37
---
Log message:
No need to check isWriteable here (which isn't sufficient anyway). Just attempt
to do the operation and if it fails, oh well.
---
Diffs of the changes: (+2 -1)
CompilerDriver.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/tools/llvmc/CompilerDriver.cpp
diff -u llvm/tools/llvmc/CompilerDriver.cpp:1.36 llvm/tools/llvmc/CompilerDriver.cpp:1.37
--- llvm/tools/llvmc/CompilerDriver.cpp:1.36 Mon May 29 13:52:05 2006
+++ llvm/tools/llvmc/CompilerDriver.cpp Tue Aug 1 13:12:29 2006
@@ -187,7 +187,8 @@
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";
More information about the llvm-commits
mailing list