The support of a few debug info attributes specifically for Fortran arrays have been added to LLVM recently, but there's no way to take advantage of them through DIBuilder. This patch extends DIBuilder::createArrayType to enable the settings of those attributes.
This is an update to D89817, with a fix to the memory leak identified by the sanitzer buildbots.
This is the only difference from the original review D89817.