forked from OSchip/llvm-project
Codegen: [PPC] Silence false-positive initialization warning. NFC
Some compilers don't do exhaustive switch checking. For those compilers, add an initialization to prevent un-initialized variable warnings from firing. For compilers with exhaustive switch checking, we still get a guarantee that the switch is exhaustive, and hence the initializations are redundant, and a non-functional change. llvm-svn: 257923
This commit is contained in:
parent
b606638526
commit
132bf36161
|
@ -746,8 +746,8 @@ void PPCInstrInfo::insertSelect(MachineBasicBlock &MBB,
|
|||
unsigned OpCode = Is64Bit ? PPC::ISEL8 : PPC::ISEL;
|
||||
auto SelectPred = static_cast<PPC::Predicate>(Cond[0].getImm());
|
||||
|
||||
unsigned SubIdx;
|
||||
bool SwapOps;
|
||||
unsigned SubIdx = 0;
|
||||
bool SwapOps = false;
|
||||
switch (SelectPred) {
|
||||
case PPC::PRED_EQ:
|
||||
case PPC::PRED_EQ_MINUS:
|
||||
|
|
Loading…
Reference in New Issue