llvm.org GIT mirror llvm / 7ed655d
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 Saleem Abdulrasool 5 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
183183 case SIRegisterInfo::SCRATCH_PTR:
184184 return AMDGPU::SGPR2_SGPR3;
185185 }
186 llvm_unreachable("unexpected preloaded value type");
186187 }