Skip to content

Commit 9bbde62

Browse files
committed
AMDGPU: Simplify else if to else in AMDGPUMCCodeEmitter
Fixes llvm#79737
1 parent 65f486c commit 9bbde62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ void AMDGPUMCCodeEmitter::encodeInstruction(const MCInst &MI,
402402
else if (Op.isExpr()) {
403403
if (const auto *C = dyn_cast<MCConstantExpr>(Op.getExpr()))
404404
Imm = C->getValue();
405-
406-
} else if (!Op.isExpr()) // Exprs will be replaced with a fixup value.
405+
} else // Exprs will be replaced with a fixup value.
407406
llvm_unreachable("Must be immediate or expr");
408407

409408
if (Desc.operands()[i].OperandType == AMDGPU::OPERAND_REG_IMM_FP64)

0 commit comments

Comments
 (0)