[flang-commits] [flang] [flang] Avoid unnecessary looping for constants (PR #156403)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Tue Sep 2 03:27:13 PDT 2025


================
@@ -152,6 +152,23 @@ class DenseGlobalBuilder {
                       : TC;
     attributeElementType =
         Fortran::lower::getFIRType(builder.getContext(), attrTc, KIND, {});
+
+    auto values = constant.values();
----------------
tblah wrote:

nit: expand auto (because the type here is non-obvious)

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


More information about the flang-commits mailing list