[Mlir-commits] [llvm] [mlir] [MLIR][ADT] Fix uninitialized scalar and array-vs-singleton patterns flagged by Coverity in generated code (PR #215217)

Sylvestre Ledru llvmlistbot at llvm.org
Mon Aug 17 03:25:28 PDT 2026


================
@@ -39,7 +39,7 @@ template<typename Fn> class function_ref;
 template <typename Ret, typename... Params>
 class LLVM_GSL_POINTER function_ref<Ret(Params...)> {
   Ret (*callback)(intptr_t callable, Params ...params) = nullptr;
-  intptr_t callable;
+  intptr_t callable = 0;
----------------
sylvestre wrote:

It's a real defect, though a low-severity one 
it is just referenced 1482 times in the coverity db
this is why i would like to fix it

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


More information about the Mlir-commits mailing list