summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-09-21 04:55:04 +0000
committerCraig Topper <craig.topper@intel.com>2017-09-21 04:55:04 +0000
commitd022d25eb3567c2328312c81ccbc1cd48e885860 (patch)
tree8882a5299e4280d3574092b76e107d94c6a24dc3
parentddfdd9413ae01fdce483c1a3b64ef35f8c749472 (diff)
downloadbcm5719-llvm-d022d25eb3567c2328312c81ccbc1cd48e885860.tar.gz
bcm5719-llvm-d022d25eb3567c2328312c81ccbc1cd48e885860.zip
[TableGen] Use CHAR_BIT instead of hardcoded 8 with sizeof. NFC
llvm-svn: 313860
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h
index 6d904a103c2..37bfe022b4d 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h
@@ -52,7 +52,7 @@ struct MachineValueTypeSet {
"Change uint8_t here to the SimpleValueType's type");
static unsigned constexpr Capacity = std::numeric_limits<uint8_t>::max()+1;
using WordType = uint64_t;
- static unsigned constexpr WordWidth = 8*sizeof(WordType);
+ static unsigned constexpr WordWidth = CHAR_BIT*sizeof(WordType);
static unsigned constexpr NumWords = Capacity/WordWidth;
static_assert(NumWords*WordWidth == Capacity,
"Capacity should be a multiple of WordWidth");
OpenPOWER on IntegriCloud