Skip to content

Can't Box Token inside BasicValue #494

@hero-clashes

Description

@hero-clashes

Describe the Bug
I am trying to add coroutines inside my compiler and I wanted to use the llvm.coro.id intrinsic
but when I tried to call it, it is panicking since in the build_call_help function it checks for the function return type but in that function is tries to box the Token type in BasicTypeEnum which doesn't support the token type
Expected Behavior
creating a call inst successfully
for now I will call it manually by just copying the code for the build_call_help and removing the void return check
LLVM Version (please complete the following information):

  • LLVM Version: 17
  • inkwell = { version = "0.4.0", features = ["llvm17-0-prefer-dynamic","target-x86"],default-features = false}

Desktop (please complete the following information):

  • OS: Windows 10

Add to that I can't box the id too, so every call that uses it I need to do it manually

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions