Skip to content

spirv-opt: Harden EliminateDeadFunctionsPass and IRContext against ID overflow - #6857

Open
s-perron wants to merge 1 commit into
KhronosGroup:mainfrom
s-perron:id_overflow_elim_dead_functions
Open

spirv-opt: Harden EliminateDeadFunctionsPass and IRContext against ID overflow#6857
s-perron wants to merge 1 commit into
KhronosGroup:mainfrom
s-perron:id_overflow_elim_dead_functions

Conversation

@s-perron

Copy link
Copy Markdown
Collaborator

Modifies EliminateDeadFunctionsPass and IRContext::KillOperandFromDebugInstructions
to handle ID overflow when GetDebugInfoNone returns nullptr, avoiding null dereference.
Propagates Status::Failure in EliminateDeadFunctionsPass.

… overflow

Modifies EliminateDeadFunctionsPass and IRContext::KillOperandFromDebugInstructions
to handle ID overflow when GetDebugInfoNone returns nullptr, avoiding null dereference.
Propagates Status::Failure in EliminateDeadFunctionsPass.
@s-perron
s-perron requested a review from sudonatalie August 31, 2026 13:54
@s-perron
s-perron enabled auto-merge (squash) August 31, 2026 13:55
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.

1 participant