Skip to content

Commit 7407165

Browse files
committed
M68k: Fix encodeRelocImm
1 parent 3793cc1 commit 7407165

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ void M68kMCCodeEmitter::encodeRelocImm(const MCInst &MI, unsigned OpIdx,
139139

140140
// Relocatable address
141141
unsigned InsertByte = getBytePosition<Size>(InsertPos);
142-
Fixups.push_back(MCFixup::create(
143-
InsertByte, Expr, MCFixup::getDataKindForSize(Size), MI.getLoc()));
142+
Fixups.push_back(MCFixup::create(InsertByte, Expr,
143+
getFixupForSize(Size, /*IsPCRel=*/false),
144+
MI.getLoc()));
144145
}
145146
}
146147

0 commit comments

Comments
 (0)