diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-07 00:12:53 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-07 00:12:53 +0000 |
commit | 3e76b502a42ac221ea41456a7631735024f8649b (patch) | |
tree | 9e4d07e21c57a4ba45fa44c54d2432de066f6223 /llvm/lib | |
parent | 9c8ad5fe02114c9306e1d40920e3a61d8540a096 (diff) | |
download | bcm5719-llvm-3e76b502a42ac221ea41456a7631735024f8649b.tar.gz bcm5719-llvm-3e76b502a42ac221ea41456a7631735024f8649b.zip |
Windows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned.
llvm-svn: 127140
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/Windows/PathV2.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/PathV2.inc b/llvm/lib/Support/Windows/PathV2.inc index 8effb0c737d..8f306d19fe1 100644 --- a/llvm/lib/Support/Windows/PathV2.inc +++ b/llvm/lib/Support/Windows/PathV2.inc @@ -649,7 +649,7 @@ error_code get_magic(const Twine &path, uint32_t len, ::CloseHandle(file); if (!read_success || (bytes_read != len)) { // Set result size to the number of bytes read if it's valid. - if (bytes_read >= 0 && bytes_read <= len) + if (bytes_read <= len) result.set_size(bytes_read); // ERROR_HANDLE_EOF is mapped to errc::value_too_large. return ec; |