From 1adb0de639204485836068d2b848eb54a8fcd709 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 3 Mar 2023 09:16:24 +0000 Subject: Fix some bit field definitions in nodes.h. Note that these fields were the last packed fields in their instruction definitions, so the higher bits were unused and always zero, therefore the erroneous bigger field size did not cause any observable bugs. Test: m test-art-host-test Test: testrunner.py --host --optimizing Change-Id: I2410fbb09d86f4d49a69b598748701d59860c55b --- compiler/optimizing/nodes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 5854fa2fa5..965ee90036 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3767,7 +3767,7 @@ class HClassTableGet final : public HExpression<1> { static constexpr size_t kNumberOfClassTableGetPackedBits = kFieldTableKind + kFieldTableKindSize; static_assert(kNumberOfClassTableGetPackedBits <= kMaxNumberOfPackedBits, "Too many packed fields."); - using TableKindField = BitField; + using TableKindField = BitField; // The index of the ArtMethod in the table. const size_t index_; @@ -5358,7 +5358,7 @@ class HNewArray final : public HExpression<2> { kFieldComponentSizeShift + kFieldComponentSizeShiftSize; static_assert(kNumberOfNewArrayPackedBits <= kMaxNumberOfPackedBits, "Too many packed fields."); using ComponentSizeShiftField = - BitField; + BitField; }; class HAdd final : public HBinaryOperation { -- cgit v1.2.3-59-g8ed1b