Skip to content

Commit 397701f

Browse files
authored
[SystemZ] Mark RELOC_NONE as not having size for SystemZ (#167027)
This fixes forward an issue in PR #147427.
1 parent 6d516c6 commit 397701f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/SystemZ/SystemZLongBranch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ static unsigned getInstSizeInBytes(const MachineInstr &MI,
216216
MI.isDebugOrPseudoInstr() || MI.isPosition() || MI.isKill() ||
217217
MI.isImplicitDef() || MI.getOpcode() == TargetOpcode::MEMBARRIER ||
218218
MI.getOpcode() == TargetOpcode::INIT_UNDEF || MI.isFakeUse() ||
219+
MI.getOpcode() == TargetOpcode::RELOC_NONE ||
219220
// These have a size that may be zero:
220221
MI.isInlineAsm() || MI.getOpcode() == SystemZ::STACKMAP ||
221222
MI.getOpcode() == SystemZ::PATCHPOINT ||

0 commit comments

Comments
 (0)