diff --git a/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp index fd08f8fe70f1..1317c08662f1 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp @@ -54,10 +54,7 @@ std::string AMDGPUIntrinsicInfo::getName(unsigned IntrID, Type **Tys, FunctionType *AMDGPUIntrinsicInfo::getType(LLVMContext &Context, unsigned ID, ArrayRef Tys) const { // FIXME: Re-use Intrinsic::getType machinery - switch (ID) { - default: - llvm_unreachable("unhandled intrinsic"); - } + llvm_unreachable("unhandled intrinsic"); } unsigned AMDGPUIntrinsicInfo::lookupName(const char *NameData,