mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
R600: silence GCC warning
GCC believes it may be possible to not return a value from the switch: lib/Target/R600/SIRegisterInfo.cpp:187:1: warning: control reaches end of non-void function [-Wreturn-type] Add an unreachable label to indicate that this is not possible and still permit switch coverage checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -184,4 +184,5 @@ unsigned SIRegisterInfo::getPreloadedValue(const MachineFunction &MF,
|
|||||||
case SIRegisterInfo::SCRATCH_PTR:
|
case SIRegisterInfo::SCRATCH_PTR:
|
||||||
return AMDGPU::SGPR2_SGPR3;
|
return AMDGPU::SGPR2_SGPR3;
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("unexpected preloaded value type");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user