Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Gracefully deal with failure of type resolution in typeOf #351

Copy link
Copy link
@andrew-wja

Description

@andrew-wja
Issue body actions

Our current implementation of typeOf (class Typed in LLVM.AST.Typed) has a problem: if the type resolution logic encounters an opaque structure type, typeOf throws an error and bails.

This can happen any time someone asks for the type of something resulting from a getelementptr instruction.

This is problematic because it doesn't allow the user to gracefully handle the failure of type resolution. typeOf should really be returning a Maybe Type instead of returning a Type and throwing an error if that type can't be resolved.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.