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

Mehdi Amini llvmlistbot at llvm.org
Mon Aug 17 03:15:30 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;
----------------
joker-eph wrote:

Is this a false positive from Coverity or is there an actual issue here?

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


More information about the Mlir-commits mailing list