mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-20 10:07:02 +00:00
[SLP][NFC]Fix a warning for ?: with enum/unsigned, NFC.
This commit is contained in:
parent
51962690d8
commit
f5c747bfbe
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user