Skip to content

Commit 8e30e0a

Browse files
committed
review changes
1 parent 87f8800 commit 8e30e0a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8859,17 +8859,19 @@ void AMDGPUAsmParser::cvtScaledMFMA(MCInst &Inst,
88598859

88608860
unsigned OpSel = 0;
88618861
auto OpselIdx = OptionalIdx.find(AMDGPUOperand::ImmTyOpSel);
8862-
if (OpselIdx != OptionalIdx.end())
8862+
if (OpselIdx != OptionalIdx.end()) {
88638863
OpSel = static_cast<const AMDGPUOperand &>(*Operands[OpselIdx->second])
88648864
.getImm();
8865+
}
88658866

88668867
unsigned OpSelHi = 0;
88678868
auto OpselHiIdx = OptionalIdx.find(AMDGPUOperand::ImmTyOpSelHi);
8868-
if (OpselHiIdx != OptionalIdx.end())
8869+
if (OpselHiIdx != OptionalIdx.end()) {
88698870
OpSelHi = static_cast<const AMDGPUOperand &>(*Operands[OpselHiIdx->second])
88708871
.getImm();
8871-
static const AMDGPU::OpName ModOps[] = {AMDGPU::OpName::src0_modifiers,
8872-
AMDGPU::OpName::src1_modifiers};
8872+
}
8873+
const AMDGPU::OpName ModOps[] = {AMDGPU::OpName::src0_modifiers,
8874+
AMDGPU::OpName::src1_modifiers};
88738875

88748876
for (unsigned J = 0; J < 2; ++J) {
88758877
unsigned ModVal = 0;

0 commit comments

Comments
 (0)