[flang-commits] [flang] [flang][debug] Support assumed shape arrays. (PR #94644)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Fri Jun 7 09:55:59 PDT 2024


================
@@ -22,6 +26,60 @@ namespace fir {
 DebugTypeGenerator::DebugTypeGenerator(mlir::ModuleOp m)
     : module(m), kindMapping(getKindMapping(m)) {
   LLVM_DEBUG(llvm::dbgs() << "DITypeAttr generator\n");
+
+  std::optional<mlir::DataLayout> dl =
+      fir::support::getOrSetDataLayout(module, /*allowDefaultLayout=*/true);
+  if (!dl)
+    mlir::emitError(module.getLoc(), "Missing data layout attribute in module");
----------------
abidh wrote:

Done.

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


More information about the flang-commits mailing list