]> granicus.if.org Git - clang/commitdiff
Fix for Path::isSpecialFile to Path::isRegularFile API in rev 89765.
authorEdward O'Callaghan <eocallaghan@auroraux.org>
Wed, 25 Nov 2009 06:33:27 +0000 (06:33 +0000)
committerEdward O'Callaghan <eocallaghan@auroraux.org>
Wed, 25 Nov 2009 06:33:27 +0000 (06:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89849 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Compilation.cpp

index 81b2cc5f372ed3306d65e3c874fefc0610528558..b819cda89c09bcd62227764a760063e85b32da51 100644 (file)
@@ -89,7 +89,7 @@ bool Compilation::CleanupFileList(const ArgStringList &Files,
     llvm::sys::Path P(*it);
     std::string Error;
 
-    if (P.isSpecialFile()) {
+    if (!P.isRegularFile()) {
       // If we have a special file in our list, i.e. /dev/null
       //  then don't call eraseFromDisk() and just continue.
       continue;