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 | 5871321e493670b0a440f45ba466da8713a1d8f2 (patch) | |
| tree | 859b8b2dd669dfed2f574c70a933d84aef7d2637 /llvm/lib/Support/Windows | |
| parent | e5ce831c7c364180611deccef5e158a1c4fd0c09 (diff) | |
| download | bcm5719-llvm-5871321e493670b0a440f45ba466da8713a1d8f2.tar.gz bcm5719-llvm-5871321e493670b0a440f45ba466da8713a1d8f2.zip | |
Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).
llvm-svn: 186301
Diffstat (limited to 'llvm/lib/Support/Windows')
| -rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index ed93f3d050b..8eee1d28ae3 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/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; } |

