We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d90f8b commit 1e353faCopy full SHA for 1e353fa
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -2521,8 +2521,9 @@ bool AMDGPUInstructionSelector::selectG_TRUNC(MachineInstr &I) const {
2521
return false;
2522
2523
if (SrcSize > 32) {
2524
- unsigned SubRegIdx =
2525
- DstSize < 32 ? AMDGPU::sub0 : TRI.getSubRegFromChannel(0, DstSize / 32);
+ unsigned SubRegIdx = DstSize < 32
+ ? static_cast<unsigned>(AMDGPU::sub0)
2526
+ : TRI.getSubRegFromChannel(0, DstSize / 32);
2527
if (SubRegIdx == AMDGPU::NoSubRegister)
2528
2529
0 commit comments