Fix clang -Wcovered-switch-default after stack-id change by D60137

llvm-svn: 363543
This commit is contained in:
Fangrui Song 2019-06-17 10:20:20 +00:00
parent ef78e55205
commit 5401c2db6e
1 changed files with 7 additions and 8 deletions

View File

@ -545,14 +545,13 @@ static unsigned findScratchNonCalleeSaveRegister(MachineFunction &MF,
}
bool SIFrameLowering::isSupportedStackID(TargetStackID::Value ID) const {
switch (ID) {
default:
return false;
case TargetStackID::Default:
case TargetStackID::NoAlloc:
case TargetStackID::SGPRSpill:
return true;
}
switch (ID) {
case TargetStackID::Default:
case TargetStackID::NoAlloc:
case TargetStackID::SGPRSpill:
return true;
}
llvm_unreachable("Invalid TargetStackID::Value");
}
void SIFrameLowering::emitPrologue(MachineFunction &MF,