[Mlir-commits] [mlir] [mlir][spirv] Check variable for null before dereferencing (PR #157457)
Daniel Kuts
llvmlistbot at llvm.org
Wed Sep 10 05:30:02 PDT 2025
================
@@ -723,7 +723,9 @@ void mlir::spirv::ConstantOp::getAsmResultNames(
IntegerType intTy = llvm::dyn_cast<IntegerType>(type);
----------------
apach301 wrote:
So what decision? I think we could have assert, because the code here assumes that intTy is valid to call an appropriate method from intCst
https://github.com/llvm/llvm-project/pull/157457
More information about the Mlir-commits
mailing list