Skip to content

Commit b43e790

Browse files
committed
fix reloc type
1 parent 65014e2 commit b43e790

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coreclr/jit/emitriscv64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5142,7 +5142,8 @@ void emitter::emitInsLoadStoreOp(instruction ins, emitAttr attr, regNumber dataR
51425142

51435143
if (addr->IsIconHandle(GTF_ICON_FTN_ADDR))
51445144
{
5145-
emitIns_R_AI(ins, EA_PTR_DSP_RELOC, dataReg, (size_t)cns, cns, addr->GetIconHandleFlag());
5145+
attr = EA_SET_FLG(attr, EA_DSP_RELOC_FLG);
5146+
emitIns_R_AI(ins, attr, dataReg, (size_t)cns, cns, addr->GetIconHandleFlag());
51465147
}
51475148
else
51485149
{

0 commit comments

Comments
 (0)