Skip to content

resolc fails on deploy-only Yul objects #490

@xermicus

Description

@xermicus

resolc --yul fails when a Yul object has no _deployed sub-object, while solc compiles it fine.

object "Test" {
    code {
        { mstore(0, 42) return(0, 32) }
    }
}

__runtime is created unconditionally even when no runtime code exists, leaving its entry block without a terminator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions