Skip to content

Commit 5958a42

Browse files
committed
[1.8>1.9] [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 4707cbf + 0aeb3a7 commit 5958a42

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
@@ -16297,7 +16297,7 @@ Lowerer::GenerateFastElemIIntIndexCommon(
1629716297
if (baseValueType.IsLikelyTypedArray())
1629816298
{
1629916299
int lengthOffset;
16300-
lengthOffset = GetArrayOffsetOfHeadSegment(baseValueType);
16300+
lengthOffset = GetArrayOffsetOfLength(baseValueType);
1630116301
headSegmentLengthOpnd = IR::IndirOpnd::New(arrayOpnd, lengthOffset, TyUint32, m_func);
1630216302
autoReuseHeadSegmentLengthOpnd.Initialize(headSegmentLengthOpnd, m_func);
1630316303
}

0 commit comments

Comments
 (0)