Skip to content

Commit 0aeb3a7

Browse files
committed
[MERGE #5402 @Penguinwizzard] Fix typo in cleanup for poisoning code
Merge pull request #5402 from Penguinwizzard:backport_length_offset_fix Backporting this fix to release/1.8 due to special request.
2 parents c325cf3 + e871f13 commit 0aeb3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Backend/Lower.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16266,7 +16266,7 @@ Lowerer::GenerateFastElemIIntIndexCommon(
1626616266
if (baseValueType.IsLikelyTypedArray())
1626716267
{
1626816268
int lengthOffset;
16269-
lengthOffset = GetArrayOffsetOfHeadSegment(baseValueType);
16269+
lengthOffset = GetArrayOffsetOfLength(baseValueType);
1627016270
headSegmentLengthOpnd = IR::IndirOpnd::New(arrayOpnd, lengthOffset, TyUint32, m_func);
1627116271
autoReuseHeadSegmentLengthOpnd.Initialize(headSegmentLengthOpnd, m_func);
1627216272
}

0 commit comments

Comments
 (0)