mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 22:26:16 +00:00
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:
parent
35741ad518
commit
26c46ba11c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user