diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-15 04:27:47 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-15 04:27:47 +0000 |
commit | b9df53a40b22c74ce3f3a7b4a7c0676a38cf5e73 (patch) | |
tree | 379b31d1b5945030b21c8fb5be73e9d4df5cfe45 /lib/Support/Windows/Path.inc | |
parent | d8fdb628ea86001e64bec1bbee8bbfa7982cf80c (diff) | |
download | external_llvm-b9df53a40b22c74ce3f3a7b4a7c0676a38cf5e73.zip external_llvm-b9df53a40b22c74ce3f3a7b4a7c0676a38cf5e73.tar.gz external_llvm-b9df53a40b22c74ce3f3a7b4a7c0676a38cf5e73.tar.bz2 |
Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r-- | lib/Support/Windows/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index ed93f3d..8eee1d2 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -588,7 +588,7 @@ static bool isReservedName(StringRef path) { return true; // Then compare against the list of ancient reserved names - for (size_t i = 0; i < sizeof(sReservedNames) / sizeof(const char *); ++i) { + for (size_t i = 0; i < array_lengthof(sReservedNames); ++i) { if (path.equals_lower(sReservedNames[i])) return true; } |