summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/SIRegisterInfo.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-07-21 17:52:00 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-07-21 17:52:00 +0000
commit913666f9bc30666f784ec6afcd9f40cc38763407 (patch)
tree32de42771cb5013916c5549a332fd7224056549d /llvm/lib/Target/R600/SIRegisterInfo.cpp
parentbda32c9e474fa05be281b2a7f55eb55b2f448346 (diff)
downloadbcm5719-llvm-913666f9bc30666f784ec6afcd9f40cc38763407.tar.gz
bcm5719-llvm-913666f9bc30666f784ec6afcd9f40cc38763407.zip
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. llvm-svn: 213572
Diffstat (limited to 'llvm/lib/Target/R600/SIRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/R600/SIRegisterInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/SIRegisterInfo.cpp b/llvm/lib/Target/R600/SIRegisterInfo.cpp
index 009f24fd63c..2a9a2ac5dd6 100644
--- a/llvm/lib/Target/R600/SIRegisterInfo.cpp
+++ b/llvm/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");
}
OpenPOWER on IntegriCloud