diff options
Diffstat (limited to 'llvm/lib/Target/DirectX/DXILResource.cpp')
-rw-r--r-- | llvm/lib/Target/DirectX/DXILResource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/DirectX/DXILResource.cpp b/llvm/lib/Target/DirectX/DXILResource.cpp index 763432911dbf..dde7255e0425 100644 --- a/llvm/lib/Target/DirectX/DXILResource.cpp +++ b/llvm/lib/Target/DirectX/DXILResource.cpp @@ -105,6 +105,7 @@ StringRef ResourceBase::getComponentTypeName(ComponentType CompType) { case ComponentType::PackedU8x32: return "p32u8"; } + llvm_unreachable("All ComponentType enums are handled in switch"); } void ResourceBase::printComponentType(Kinds Kind, ComponentType CompType, @@ -172,6 +173,7 @@ StringRef ResourceBase::getKindName(Kinds Kind) { case Kinds::FeedbackTexture2DArray: return "fbtex2darray"; } + llvm_unreachable("All Kinds enums are handled in switch"); } void ResourceBase::printKind(Kinds Kind, unsigned Alignment, raw_ostream &OS, |