[Mlir-commits] [mlir] [mlir] Fix integer overflow in ShapedType::getNumElements (PR #178395)

Stefan Weigl-Bosker llvmlistbot at llvm.org
Wed Jan 28 10:23:37 PST 2026


https://github.com/sweiglbosker commented:

I think this should be checked in verifier and/or parser, and left as an assertion in the interface. Also, please dont use ai to submit many low effort prs to small issues. (see [AI Tool Use Policity](https://llvm.org/docs/AIToolPolicy.html)) It may give others the impression that you dont understand the code you are submitting as a new contributor. I.e, why is the unchecked getter wrapping the checked getter? Why is there an assertion in the checked getter?

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


More information about the Mlir-commits mailing list