File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
llvm/lib/Target/AMDGPU/AsmParser Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments