From 169c24eeafb072a79ffbdb2d1d36960ebc0c17b4 Mon Sep 17 00:00:00 2001 From: Brian Sullivan Date: Mon, 24 Feb 2020 17:20:26 -0800 Subject: [PATCH] Proposed fix for #32085 --- src/coreclr/src/jit/emitxarch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/jit/emitxarch.cpp b/src/coreclr/src/jit/emitxarch.cpp index 22b800ecee4fa..b175b1415dfa6 100644 --- a/src/coreclr/src/jit/emitxarch.cpp +++ b/src/coreclr/src/jit/emitxarch.cpp @@ -2835,7 +2835,7 @@ void emitter::emitHandleMemOp(GenTreeIndir* indir, instrDesc* id, insFormat fmt, // Either not generating relocatable code, or addr must be an icon handle, or the // constant is zero (which we won't generate a relocation for). - assert(!emitComp->opts.compReloc || memBase->IsIconHandle() || memBase->IsIntegralConst(0)); + assert(!emitComp->opts.compReloc || memBase->IsIconHandle() || memBase->IsIntegralConst(0) || memBase->AsIntConCommon()->FitsInAddrBase(emitComp)); if (memBase->AsIntConCommon()->AddrNeedsReloc(emitComp)) {