SparcJITInfo.cpp: Prune "default:" label to fix a warning. [-Wcovered-switch-default]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2013-10-08 10:29:09 +00:00
parent 35741ad518
commit 26c46ba11c

View File

@ -140,7 +140,6 @@ void SparcJITInfo::relocate(void *Function, MachineRelocation *MR,
intptr_t ResultPtr = (intptr_t) MR->getResultPointer(); intptr_t ResultPtr = (intptr_t) MR->getResultPointer();
switch ((SP::RelocationType) MR->getRelocationType()) { switch ((SP::RelocationType) MR->getRelocationType()) {
default: llvm_unreachable("Unknown reloc!");
case SP::reloc_sparc_hi: case SP::reloc_sparc_hi:
ResultPtr = (ResultPtr >> 10) & 0x3fffff; ResultPtr = (ResultPtr >> 10) & 0x3fffff;
break; break;