[flang-commits] [flang] [flang][debug] Support derived types. (PR #99476)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Fri Jul 19 04:31:50 PDT 2024
================
@@ -487,10 +487,9 @@ std::string getTypeAsString(mlir::Type ty, const KindMapping &kindMap,
/// target dependent type size inquiries in lowering. It would also not be
/// straightforward given the need for a kind map that would need to be
/// converted in terms of mlir::DataLayoutEntryKey.
-std::pair<std::uint64_t, unsigned short>
-getTypeSizeAndAlignment(mlir::Location loc, mlir::Type ty,
- const mlir::DataLayout &dl,
- const fir::KindMapping &kindMap);
+std::pair<std::uint64_t, unsigned short> getTypeSizeAndAlignment(
+ mlir::Location loc, mlir::Type ty, const mlir::DataLayout &dl,
+ const fir::KindMapping &kindMap, bool *success = nullptr);
----------------
tblah wrote:
nit: if we are taking this approach, please could you add something to the documentation comment about the `success` parameter because I think the new behavior is not obvious
https://github.com/llvm/llvm-project/pull/99476
More information about the flang-commits
mailing list