[llvm] 7ed6818 - Fix a -Wswitch warning.
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 23:58:25 PDT 2022
Author: Haojian Wu
Date: 2022-09-13T08:57:43+02:00
New Revision: 7ed68182d741cf78e7cf87399d8ae6de73bf723c
URL: https://github.com/llvm/llvm-project/commit/7ed68182d741cf78e7cf87399d8ae6de73bf723c
DIFF: https://github.com/llvm/llvm-project/commit/7ed68182d741cf78e7cf87399d8ae6de73bf723c.diff
LOG: Fix a -Wswitch warning.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index 77362be3cd3e..c58693bf1c83 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -754,8 +754,10 @@ InstructionCost RISCVTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
case CmpInst::FCMP_OLE:
case CmpInst::FCMP_UNE:
return LT.first * 1;
- }
// TODO: Other comparisons?
+ default:
+ break;
+ }
}
// TODO: Add cost for scalar type.
More information about the llvm-commits
mailing list