Skip to content

LLVM 22 fixes #909

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

Merged
merged 3 commits into from
Jul 16, 2025
Merged

Conversation

coldav
Copy link
Collaborator

@coldav coldav commented Jul 16, 2025

Overview

Replace getNextNonDebugInstruction() with getNextNode(), LangOptions::Optimize removal and add AstReader CodeGenOptions argument.

Reason for change

LLVM 21 has removed getNextNonDebugInstruction() and replaced its usage with getNextNode(), has removed LangOptions::Optimize and added CodeGenOptions to AstReader.

Description of change

Since this replacement seems to have no ill effects, we make the same change here. as well as adding arguments.

@coldav coldav force-pushed the colin/fix_get_next_non_debug branch from ede45e0 to 6797e0f Compare July 16, 2025 08:05
@coldav coldav changed the title DRAFT: Replace getNextNonDebugInstruction() with getNextNode() Replace getNextNonDebugInstruction() with getNextNode() Jul 16, 2025
coldav added 2 commits July 16, 2025 11:13
llvm PR #144383 removed getNextNonDebugInstruction() and replaced its usage with getNextNode().
Since this replacement seems to have no ill effects, we make the same
change here.
This is no longer supported in LLVM 22, so remove reference conditionally.
@coldav coldav force-pushed the colin/fix_get_next_non_debug branch from 6797e0f to 275e8f3 Compare July 16, 2025 10:16
…tantiation.

LLVM 22 has added a CodeGenOptions parameter to clang::ASTReader so add
it conditionally.
@coldav coldav changed the title Replace getNextNonDebugInstruction() with getNextNode() LLVM 22 fixes Jul 16, 2025
@coldav coldav merged commit 590200e into uxlfoundation:main Jul 16, 2025
20 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.

2 participants