Skip to content
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

Fix failures for imports with LLVM-17 #1414

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

alokkrsharma
Copy link
Collaborator

Symptom: Compilation of any Fortran program with imports (USE statement) fails with assert in compiler backend.

Diagnosis: LLVM-17 expects imports list in retainedNode field of DISubprogram wihch while Flang is still generating it as imports field of DICompilationUnit.

Fix: Flang is now updated to new IR as expected by LLVM-17.

Symptom: Compilation of any Fortran program with imports (USE statement) fails
with assert in compiler backend.

Diagnosis: LLVM-17 expects imports list in retainedNode field of DISubprogram wihch
while Flang is still generating it as imports field of DICompilationUnit.

Fix: Flang is now updated to new IR as expected by LLVM-17.
@@ -4107,7 +4114,8 @@ lldbg_function_end(LL_DebugInfo *db, int func)

static LL_MDRef
lldbg_create_imported_entity(LL_DebugInfo *db, SPTR entity_sptr, SPTR func_sptr,
IMPORT_TYPE entity_type, LL_MDRef elements_mdnode)
IMPORT_TYPE entity_type, LL_MDRef elements_mdnode,
LL_MDRef imported_list)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The parameter declaration is not left-aligned with the previous line.

Copy link
Collaborator

@bryanpkc bryanpkc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than a nit.

@shivaramaarao shivaramaarao merged commit 08b46d7 into flang-compiler:master Aug 9, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants