[PATCH] D154882: [DirectX] Fix two "not all control paths return a value" warnings
Justin Bogner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 15:35:15 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7f9ba1994a23: [DirectX] Fix two "not all control paths return a value" warnings (authored by bogner).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154882/new/
https://reviews.llvm.org/D154882
Files:
llvm/lib/Target/DirectX/DXILResource.cpp
Index: llvm/lib/Target/DirectX/DXILResource.cpp
===================================================================
--- llvm/lib/Target/DirectX/DXILResource.cpp
+++ llvm/lib/Target/DirectX/DXILResource.cpp
@@ -105,6 +105,7 @@
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 @@
case Kinds::FeedbackTexture2DArray:
return "fbtex2darray";
}
+ llvm_unreachable("All Kinds enums are handled in switch");
}
void ResourceBase::printKind(Kinds Kind, unsigned Alignment, raw_ostream &OS,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154882.538855.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230710/2fad726d/attachment.bin>
More information about the llvm-commits
mailing list