Skip to content

Reading ParamTypes of function types fails #134

@TillAlex

Description

@TillAlex

When reading the ParamTypes of function types an array with the correct number of elements is returned, but all returned types have 0x0 handles. These lines reproduce the issue:

var returnType = LLVMTypeRef.Int8;
var parameterTypes = new[] {LLVMTypeRef.Double};
var functionType = LLVMTypeRef.CreateFunction(returnType, parameterTypes);
Debug.Assert(parameterTypes.First() == functionType.ParamTypes.First()); // Fails

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