[flang-commits] [flang] [flang] Fix build after #93226. (PR #93516)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Tue May 28 02:16:13 PDT 2024


https://github.com/abidh created https://github.com/llvm/llvm-project/pull/93516

The #93226 adds 4 more fields in DICompositeTypeAttr. This PR provides default value of those 4 fields. This will be required to avoid build error once #93226 is merged.

>From 2cbbdae141aaff118d24e1654ef3c3eaf7f7cb0b Mon Sep 17 00:00:00 2001
From: Abid Qadeer <haqadeer at amd.com>
Date: Tue, 28 May 2024 10:01:27 +0100
Subject: [PATCH] [flang] Fix build after #93226.

The #93226 adds 4 more fields in DICompositeTypeAttr. This PR provides
default value of those 4 fields. This will be required to avoid build
error once #93226 is merged.
---
 flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp b/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
index 07163de958f91..a174f2c2bc4bf 100644
--- a/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
+++ b/flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
@@ -73,7 +73,9 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertSequenceType(
       context, llvm::dwarf::DW_TAG_array_type, /*recursive id*/ {},
       /* name */ nullptr, /* file */ nullptr, /* line */ 0, /* scope */ nullptr,
       elemTy, mlir::LLVM::DIFlags::Zero, /* sizeInBits */ 0,
-      /*alignInBits*/ 0, elements);
+      /*alignInBits*/ 0, elements, /* dataLocation */ nullptr,
+      /* rank */ nullptr, /* allocated */ nullptr,
+      /* associated */ nullptr);
 }
 
 mlir::LLVM::DITypeAttr



More information about the flang-commits mailing list