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

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 04:16:52 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!");
----------------
Keenuts wrote:

redundant. The if it does not start with `opencl.` it will assert line 3208

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


More information about the llvm-commits mailing list