commit | b9df53a40b22c74ce3f3a7b4a7c0676a38cf5e73 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Mon Jul 15 04:27:47 2013 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Mon Jul 15 04:27:47 2013 +0000 |
tree | 379b31d1b5945030b21c8fb5be73e9d4df5cfe45 | |
parent | d8fdb628ea86001e64bec1bbee8bbfa7982cf80c [diff] [blame] |
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
diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp index 9891ad3..3629d74 100644 --- a/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -82,7 +82,7 @@ (int)MVT::v2i32, (int)MVT::v4i32 }; - size_t NumTypes = sizeof(types) / sizeof(*types); + const size_t NumTypes = array_lengthof(types); for (unsigned int x = 0; x < NumTypes; ++x) { MVT::SimpleValueType VT = (MVT::SimpleValueType)types[x];