[llvm] c97ab93 - [CodeGen] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 10:53:17 PDT 2023
Author: Kazu Hirata
Date: 2023-06-14T10:53:11-07:00
New Revision: c97ab93dcadeb43faec5225250f3b5ee53ec3d3d
URL: https://github.com/llvm/llvm-project/commit/c97ab93dcadeb43faec5225250f3b5ee53ec3d3d
DIFF: https://github.com/llvm/llvm-project/commit/c97ab93dcadeb43faec5225250f3b5ee53ec3d3d.diff
LOG: [CodeGen] Fix a warning
This patch fixes:
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp:1790:3: error:
default label in switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
Added:
Modified:
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp b/llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
index 1c61179753ba3..a30edf5613e45 100644
--- a/llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
+++ b/llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
@@ -1787,10 +1787,6 @@ Value *ComplexDeinterleavingGraph::replaceNode(IRBuilderBase &Builder,
ReplacementNode = replaceNode(Builder, Node->Operands[0]);
processReductionOperation(ReplacementNode, Node);
break;
- default:
- llvm_unreachable(
- "Unhandled case in ComplexDeinterleavingGraph::replaceNode");
- break;
}
assert(ReplacementNode && "Target failed to create Intrinsic call.");
More information about the llvm-commits
mailing list