From 7ed655da8c0629b70d7f7f9928ebc126c86284c5 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 21 Jul 2014 17:52:00 +0000 Subject: [PATCH] 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 --- lib/Target/R600/SIRegisterInfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/R600/SIRegisterInfo.cpp b/lib/Target/R600/SIRegisterInfo.cpp index 009f24fd63c..2a9a2ac5dd6 100644 --- a/lib/Target/R600/SIRegisterInfo.cpp +++ b/lib/Target/R600/SIRegisterInfo.cpp @@ -184,4 +184,5 @@ unsigned SIRegisterInfo::getPreloadedValue(const MachineFunction &MF, case SIRegisterInfo::SCRATCH_PTR: return AMDGPU::SGPR2_SGPR3; } + llvm_unreachable("unexpected preloaded value type"); } -- 2.34.1