Skip to content

[flang] Fix build after #93226. #93516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

abidh
Copy link
Contributor

@abidh abidh commented May 28, 2024

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.

The llvm#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 llvm#93226 is merged.
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:fir-hlfir labels May 28, 2024
@llvmbot
Copy link
Member

llvmbot commented May 28, 2024

@llvm/pr-subscribers-flang-fir-hlfir

Author: Abid Qadeer (abidh)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/93516.diff

1 Files Affected:

  • (modified) flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp (+3-1)
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

@kiranchandramohan
Copy link
Contributor

@abidh This should go along with #93226

@abidh
Copy link
Contributor Author

abidh commented May 28, 2024

@abidh This should go along with #93226

Thanks for your comment. I will add it in the #93226.

abidh added a commit to abidh/llvm-project that referenced this pull request May 28, 2024
The llvm#92568 introduced call of DICompositeTypeAttr::get in flang.
This commit adjusts the call to fix the build.

I initially opened the llvm#93516 for it but was advised to add this
change in this PR.
@abidh abidh closed this May 28, 2024
@abidh abidh deleted the comp_type_build_fix branch May 28, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:fir-hlfir flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants