Skip to content

use expected<value_t> throughout llvmgen stage #108

@raffopazzo

Description

@raffopazzo

Some programs are valid but cannot be generated if necessary data has been erased from the runtime.
For example below cannot_copy() typechecks but it cannot be generated at runtime because n has been erased.

func cannot_copy(0 u64_t n, array_t(i32_t, n) xs) -> array_t(i32_t, n)
{
    return xs;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions