[Mlir-commits] [mlir] [mlir][spirv] Check variable for null before dereferencing (PR #157457)
Daniel Kuts
llvmlistbot at llvm.org
Mon Sep 8 08:34:37 PDT 2025
apach301 wrote:
> I don't understand when this could happen. Could you add a lit test? If the value is an integer attr, the type must be either bool or int, no?
The problem is that `intTy` could be NULL after dynamic cast, there are checks in code for this (lines 726, 739), except these 2 cases (calling isSignless and isUnsigned). Can't add a test cause it was a static analyzer, I don't know how to trigger exact this code
https://github.com/llvm/llvm-project/pull/157457
More information about the Mlir-commits
mailing list