fabianmcg wrote: This fix doesn't work for the static case as the TypeConverter is created at pass initialization, which doesn't know on which op is being run on, so it's not possible to get the DataLayout. https://github.com/llvm/llvm-project/pull/156557