Fix host tuple object handling #245

Merged
sb10q merged 1 commits from tuple_fix into master 2022-03-27 07:47:14 +08:00
Collaborator

Symbol resolver on host tuple object should also return just a StructValue instead of a PointerValue. This error will also cause something like:

LLVM ERROR: Type mismatch in constant table!
Aborted

on the following code:

@nac3
class Demo:
    core: KernelInvariant[Core]
    t: KernelInvariant[tuple[int32, int32]]
    def __init__(self):
        self.core = Core()
        self.t = (111,222)
    
    @kernel
    def run(self):
        pass
Symbol resolver on host tuple object should also return just a `StructValue` instead of a `PointerValue`. This error will also cause something like: ``` LLVM ERROR: Type mismatch in constant table! Aborted ``` on the following code: ```python @nac3 class Demo: core: KernelInvariant[Core] t: KernelInvariant[tuple[int32, int32]] def __init__(self): self.core = Core() self.t = (111,222) @kernel def run(self): pass ```
ychenfo added 1 commit 2022-03-27 02:49:17 +08:00
sb10q merged commit 10d623e36f into master 2022-03-27 07:47:14 +08:00
sb10q deleted branch tuple_fix 2022-03-27 07:47:18 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#245
No description provided.