Skip to content

Fix codegen spec for ProcPointer of virtual type#14903

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:spec/virtual-proc-pointer
Aug 15, 2024
Merged

Fix codegen spec for ProcPointer of virtual type#14903
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:spec/virtual-proc-pointer

Conversation

@HertzDevil
Copy link
Contributor

The spec in #10964 is breaking the JIT because it is trying to return a Proc, which comprises 2 Void*s and therefore isn't supported by LLVM::GenericValue. The same would have happened if the spec were written like this:

run(<<-CRYSTAL)
  x = uninitialized ->
  x
  CRYSTAL

Turning it into a typed spec (#14090) gets rid of this implicit value.

@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 14, 2024
@straight-shoota straight-shoota merged commit be4a20b into crystal-lang:master Aug 15, 2024
@HertzDevil HertzDevil deleted the spec/virtual-proc-pointer branch September 8, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:specs topic:compiler:codegen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants