Skip to content

Commit af0de1c

Browse files
[MERGE #5183 @Penguinwizzard] Fix typo in cleanup for poisoning code
Merge pull request #5183 from Penguinwizzard:fixheadsegmenttolength Causes nullptr AVs, RS5 only.
2 parents 78a9895 + c8f5035 commit af0de1c

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
@@ -17042,7 +17042,7 @@ Lowerer::GenerateFastElemIIntIndexCommon(
1704217042
if (baseValueType.IsLikelyTypedArray())
1704317043
{
1704417044
int lengthOffset;
17045-
lengthOffset = GetArrayOffsetOfHeadSegment(baseValueType);
17045+
lengthOffset = GetArrayOffsetOfLength(baseValueType);
1704617046
headSegmentLengthOpnd = IR::IndirOpnd::New(arrayOpnd, lengthOffset, TyUint32, m_func);
1704717047
autoReuseHeadSegmentLengthOpnd.Initialize(headSegmentLengthOpnd, m_func);
1704817048
}

0 commit comments

Comments
 (0)