"LLVM ERROR: Type mismatch in constant table!" on empty host list #256
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#256
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Notice this error when looking into optimization for
unwrap
onKernelInvariant
fields.Currently empty host lists are represented by empty
int32
lists inget_symbol_value
, which will causeLLVM ERROR: Type mismatch in constant table!
when encountering empty host lists of different type:This empty list issue should somehow be isomorphic to the handling of
none
for the Option type... thinking of passing an additional argument toget_symbol_value
(get_obj_value
,to_basic_value_enum
) to indicate the expected type, and do the casting accordingly?Yes, add expected type to
get_symbol_value
is fine IMO.