Skip to content

CANN: Refactor #ifdef blocks to avoid unreachable code after return#25273

Open
rauletorresc wants to merge 1 commit into
ggml-org:masterfrom
rauletorresc:rauletorresc-ggml-patch-001
Open

CANN: Refactor #ifdef blocks to avoid unreachable code after return#25273
rauletorresc wants to merge 1 commit into
ggml-org:masterfrom
rauletorresc:rauletorresc-ggml-patch-001

Conversation

@rauletorresc

Copy link
Copy Markdown
Contributor

Overview

Some conditional preprocessing blocks insert return statements that render the subsequent code as unreachable.

Additional information

This is fixed by placing the potentially unreachable code inside a #else directive.

Requirements

@rauletorresc rauletorresc requested a review from a team as a code owner July 3, 2026 16:35
@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning Ascend NPU issues specific to Ascend NPUs labels Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ascend NPU issues specific to Ascend NPUs ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant