Skip to content

fix(llvm): evaluate input destinations through typed addresses - #1060

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
hiyouwhatsapp:fix/input-typed-destinations-1004
Nov 1, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
hiyouwhatsapp:fix/input-typed-destinations-1004

Conversation

@hiyouwhatsapp

Copy link
Copy Markdown
Contributor

Fixes #1004

So input was still using the old lvalue path, which runs the index before the pointer base and rejects computed pointers

This uses the same typed address lowering as assignment, keeping each destination evaluated once before reading

Added O0/O2 regressions for pointer changes during indexing, computed bases and struct fields

Use assignment's address lowering for input destinations so pointer bases
are evaluated before indices and computed lvalues remain supported

Add O0/O2 regressions for evaluation order, nested fields and once-only calls

Signed-off-by: hiyouwhatsapp <[email protected]>

@LunaStev LunaStev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes and regression coverage. All 50 checks passed on the reviewed head.

@LunaStev
LunaStev merged commit 4f15bbc into wavefnd:master Nov 1, 2026
50 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.

Lower input destinations through typed addresses in source evaluation order

2 participants