[SLP][NFC]Fix a warning for ?: with enum/unsigned, NFC.

This commit is contained in:
Alexey Bataev 2022-10-18 10:07:25 -07:00
parent 51962690d8
commit f5c747bfbe

View File

@ -6616,7 +6616,7 @@ InstructionCost BoUpSLP::getEntryCost(const TreeEntry *E,
case Instruction::Xor:
case Instruction::GetElementPtr: {
unsigned Opcode = ShuffleOrOp == Instruction::GetElementPtr
? Instruction::Add
? static_cast<unsigned>(Instruction::Add)
: ShuffleOrOp;
auto GetScalarCost = [=](unsigned Idx) {
auto *VI = dyn_cast<Instruction>(VL[Idx]);