[Mlir-commits] [mlir] dbebcb0 - [mlir][spirv] Remove unnecessary assertion (#200137)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 28 03:36:50 PDT 2026


Author: Davide Grohmann
Date: 2026-05-28T12:36:44+02:00
New Revision: dbebcb02d3d8f2e92e1ba235992fb43b5fad50a3

URL: https://github.com/llvm/llvm-project/commit/dbebcb02d3d8f2e92e1ba235992fb43b5fad50a3
DIFF: https://github.com/llvm/llvm-project/commit/dbebcb02d3d8f2e92e1ba235992fb43b5fad50a3.diff

LOG: [mlir][spirv] Remove unnecessary assertion (#200137)

The use of the variable in the assertion was causing a build failure
when compiling with assertion off and hence the variable becomes unused.

Signed-off-by: Davide Grohmann <davide.grohmann at arm.com>

Added: 
    

Modified: 
    mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp b/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
index e3fa2d48793d7..0e6d199eeabf0 100644
--- a/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
+++ b/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
@@ -417,9 +417,6 @@ spirv::Deserializer::processDebugInfoExtInst(ArrayRef<uint32_t> operands,
                      "<id>, result <id>, set <id> and instruction opcode");
   }
 
-  StringRef &extensionSetName = extendedInstSets[operands[2]];
-  assert(extensionSetName == extDebugInfo);
-
   Type resultType = getType(operands[0]);
   if (!resultType || !isVoidType(resultType))
     return emitError(unknownLoc,


        


More information about the Mlir-commits mailing list