mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Resolving MSVC warnings about switch statements with a default label, but no case labels. No functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
29e068bac0
commit
50d09f1212
@ -827,14 +827,11 @@ bool ARM64InstrInfo::optimizeCompareInstr(
|
|||||||
|
|
||||||
/// Return true if this is this instruction has a non-zero immediate
|
/// Return true if this is this instruction has a non-zero immediate
|
||||||
bool ARM64InstrInfo::hasNonZeroImm(const MachineInstr *MI) const {
|
bool ARM64InstrInfo::hasNonZeroImm(const MachineInstr *MI) const {
|
||||||
switch (MI->getOpcode()) {
|
if (MI->getOperand(3).isImm()) {
|
||||||
default:
|
unsigned val = MI->getOperand(3).getImm();
|
||||||
if (MI->getOperand(3).isImm()) {
|
return (val != 0);
|
||||||
unsigned val = MI->getOperand(3).getImm();
|
|
||||||
return (val != 0);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,10 +37,8 @@ AMDGPUMCInstLower::AMDGPUMCInstLower(MCContext &ctx, const AMDGPUSubtarget &st):
|
|||||||
{ }
|
{ }
|
||||||
|
|
||||||
enum AMDGPUMCInstLower::SISubtarget
|
enum AMDGPUMCInstLower::SISubtarget
|
||||||
AMDGPUMCInstLower::AMDGPUSubtargetToSISubtarget(unsigned Gen) const {
|
AMDGPUMCInstLower::AMDGPUSubtargetToSISubtarget(unsigned) const {
|
||||||
switch (Gen) {
|
return AMDGPUMCInstLower::SI;
|
||||||
default: return AMDGPUMCInstLower::SI;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned AMDGPUMCInstLower::getMCOpcode(unsigned MIOpcode) const {
|
unsigned AMDGPUMCInstLower::getMCOpcode(unsigned MIOpcode) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user