[llvm] [SPIRV] Fix code quality issues. (PR #152005)

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 07:43:16 PDT 2025


================
@@ -3186,6 +3187,7 @@ static SPIRVType *getLayoutType(const TargetExtType *ExtensionType,
 namespace SPIRV {
 TargetExtType *parseBuiltinTypeNameToTargetExtType(std::string TypeName,
                                                    LLVMContext &Context) {
+  assert(!TypeName.empty() && "Empty builtin type name!");
----------------
maarquitos14 wrote:

Good catch! I'll undo this one.

https://github.com/llvm/llvm-project/pull/152005


More information about the llvm-commits mailing list