Skip to content

Commit 1030751

Browse files
authored
Merge release/10.0-rc2 into release/10.0 (#120743)
2 parents 9756c8e + 0bb50b9 commit 1030751

File tree

10 files changed

+1096
-254
lines changed

10 files changed

+1096
-254
lines changed

src/coreclr/jit/codegencommon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ bool CodeGen::genCreateAddrMode(GenTree* addr,
14831483
mul = 0;
14841484
rv2 = nullptr;
14851485
}
1486-
else if (index->IsIntCnsFitsInI32())
1486+
else if (index->IsIntCnsFitsInI32() && !index->AsIntConCommon()->ImmedValNeedsReloc(compiler))
14871487
{
14881488
ssize_t constantIndex = index->AsIntConCommon()->IconValue() * indexScale;
14891489
if (constantIndex == 0)

0 commit comments

Comments
 (0)