diff options
author | Francois Pichet <pichet2000@gmail.com> | 2010-11-24 03:07:43 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2010-11-24 03:07:43 +0000 |
commit | 31ee8bfb0e761d308a47bc435cd655328a74a822 (patch) | |
tree | e1954bc9d90ef889921ce804a84ab3c813bd8e12 /clang/lib/Basic/FileSystemStatCache.cpp | |
parent | 4e70ac7b684f8188ddafe83b8b5d02dc115d670d (diff) | |
download | bcm5719-llvm-31ee8bfb0e761d308a47bc435cd655328a74a822.tar.gz bcm5719-llvm-31ee8bfb0e761d308a47bc435cd655328a74a822.zip |
Fix 2 problems with Chris Lattner's FileManager redesign on Windows.
- FileEntry::operator= is needed on Win32.
- There was an error in the S_ISDIR() macro.
llvm-svn: 120079
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
-rw-r--r-- | clang/lib/Basic/FileSystemStatCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp index 14f762e9887..359e1924d00 100644 --- a/clang/lib/Basic/FileSystemStatCache.cpp +++ b/clang/lib/Basic/FileSystemStatCache.cpp @@ -25,7 +25,7 @@ using namespace clang; #if defined(_MSC_VER) -#define S_ISDIR(s) (_S_IFDIR & s) +#define S_ISDIR(s) ((_S_IFDIR & s) !=0) #endif /// FileSystemStatCache::get - Get the 'stat' information for the specified |