Skip to content

LLVM 22 fixes#909

Merged
coldav merged 3 commits into
uxlfoundation:mainfrom
coldav:colin/fix_get_next_non_debug
Jul 16, 2025
Merged

LLVM 22 fixes#909
coldav merged 3 commits into
uxlfoundation:mainfrom
coldav:colin/fix_get_next_non_debug

Conversation

@coldav

@coldav coldav commented Jul 16, 2025

Copy link
Copy Markdown
Collaborator

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
Colin Davidson 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