diff --git a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp index eff74d609f0b..d08caa7f173e 100644 --- a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp +++ b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp @@ -310,8 +310,6 @@ bool SILoadStoreOptimizer::findMatchingInst(CombineInfo &CI) { AddrOpName[NumAddresses++] = AMDGPU::OpName::srsrc; AddrOpName[NumAddresses++] = AMDGPU::OpName::soffset; break; - default: - llvm_unreachable("invalid InstClass"); } for (unsigned i = 0; i < NumAddresses; i++) {