Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty <stack-vector> computations #1492

Merged
merged 1 commit into from Apr 28, 2023

Conversation

housel
Copy link
Member

@housel housel commented Apr 27, 2023

Fixes #1490.

The code that emits the local definition for <stack-vector-temporary>
values in an IEP function prefix already prevented emitting an
allocation when the stack-allocated vector was empty, but the
initialization and reference code did not handle this case properly.

* sources/dfmc/llvm-back-end/llvm-emit-computation.dylan
  (emit-reference on <stack-vector-temporary>): Emit references to
   empty <stack-vector> results as references to the canoncial empty
   vector.
  (emit-computation on <stack-vector>): Don't attempt to reference
   the <stack-vector-temporary> for an empty stack vector since it
   wasn't defined.
@housel housel merged commit 514922b into dylan-lang:master Apr 28, 2023
2 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.

No value defined for temporary Vt83
2 participants