[Mlir-commits] [mlir] [mlir][OpFormatGen][NFC] Initialize C-style arrays upon creation (PR #85631)

Andrei Golubev llvmlistbot at llvm.org
Tue Mar 19 01:09:39 PDT 2024


andrey-golubev wrote:

> > Static analysis would warn about uninitialized fixed-size arrays in tablegen-generated code.
> 
> But are these false-positive or are there real bugs here?

Not sure. I've noticed we have this patch in downstream (but there's no proper explanation). If the array is uninitialized at some stage, then this is a false positive. Likely, the static analyzer we have complains that we use the uninitialized array in an expression (in `ArrayRef` ctor), perhaps it is actually filled-in through an `ArrayRef` later, but this is probably too much for the tooling.

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


More information about the Mlir-commits mailing list