Skip to content

Fix runtime type bug with c_ptr.eltType#28291

Open
jabraham17 wants to merge 1 commit into
chapel-lang:mainfrom
jabraham17:fix-debug-flag
Open

Fix runtime type bug with c_ptr.eltType#28291
jabraham17 wants to merge 1 commit into
chapel-lang:mainfrom
jabraham17:fix-debug-flag

Conversation

@jabraham17

@jabraham17 jabraham17 commented Jan 9, 2026

Copy link
Copy Markdown
Member

Fixes an issue where runtime types where not properly removed when compiling code with --debug.

The bug is really that the compiler doesn't know how to codegen types (which it shouldn't) and earlier phases of the compiler don't remove some type calls properly. This makes --dead-code-elimination an essential pass to run. However, DCE, can remove important information when debugging. To workaround this, this PR partially re-enables DCE with --debug, keeping enough to make the compiler not crash.

Resolves

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
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