forked from OSchip/llvm-project
Fix clang -Wcovered-switch-default after stack-id change by D60137
llvm-svn: 363543
This commit is contained in:
parent
ef78e55205
commit
5401c2db6e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue