Skip to content

Commit 169c24e

Browse files
committed
Proposed fix for dotnet#32085
1 parent 7bd9303 commit 169c24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/src/jit/emitxarch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,7 @@ void emitter::emitHandleMemOp(GenTreeIndir* indir, instrDesc* id, insFormat fmt,
28352835

28362836
// Either not generating relocatable code, or addr must be an icon handle, or the
28372837
// constant is zero (which we won't generate a relocation for).
2838-
assert(!emitComp->opts.compReloc || memBase->IsIconHandle() || memBase->IsIntegralConst(0));
2838+
assert(!emitComp->opts.compReloc || memBase->IsIconHandle() || memBase->IsIntegralConst(0) || memBase->AsIntConCommon()->FitsInAddrBase(emitComp));
28392839

28402840
if (memBase->AsIntConCommon()->AddrNeedsReloc(emitComp))
28412841
{

0 commit comments

Comments
 (0)