Skip to content

Commit d337e09

Browse files
committed
SystemZMCCodeEmitter: Set PCRel at fixup creation
Avoid reliance on the MCAssembler::evaluateFixup workaround checking MCFixupKindInfo::FKF_IsPCRel.
1 parent eb84af4 commit d337e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ SystemZMCCodeEmitter::getPCRelEncoding(const MCInst &MI, unsigned OpNum,
206206
Expr = MCBinaryExpr::createAdd(Expr, OffsetExpr, Ctx, Loc);
207207
}
208208
}
209-
Fixups.push_back(MCFixup::create(Offset, Expr, (MCFixupKind)Kind));
209+
Fixups.push_back(MCFixup::create(Offset, Expr, Kind, true));
210210

211211
// Output the fixup for the TLS marker if present.
212212
if (AllowTLS && OpNum + 1 < MI.getNumOperands()) {

0 commit comments

Comments
 (0)