From f5c747bfbe36b8f53e6fe2d85ffcaecba6d7153c Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Tue, 18 Oct 2022 10:07:25 -0700 Subject: [PATCH] [SLP][NFC]Fix a warning for ?: with enum/unsigned, NFC. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 8ca37b9..f3565319 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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(Instruction::Add) : ShuffleOrOp; auto GetScalarCost = [=](unsigned Idx) { auto *VI = dyn_cast(VL[Idx]); -- 2.7.4