Skip to content

resolc fails on deploy-only Yul objects #490

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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