[Mlir-commits] [mlir] [mlir] Fix possible null dereference during error logging in EmitC (PR #157456)
Daniel Kuts
llvmlistbot at llvm.org
Sat Sep 13 10:39:33 PDT 2025
================
@@ -1320,7 +1320,11 @@ GetGlobalOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
// global has non-array type
auto lvalueType = dyn_cast<LValueType>(resultType);
- if (!lvalueType || lvalueType.getValueType() != globalType)
+ if (!lvalueType)
+ return emitOpError("on non-array type expects result type to be an "
+ "lvalue type for the global @")
+ << getName();
----------------
apach301 wrote:
Sorry, but how I previously said I have no input data to run because it was a static analysis https://github.com/llvm/llvm-project/pull/157456#issuecomment-3269595086
https://github.com/llvm/llvm-project/pull/157456
More information about the Mlir-commits
mailing list