Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading ParamTypes of function types fails #134

Closed
TillAlex opened this issue Apr 17, 2020 · 2 comments · Fixed by #135
Closed

Reading ParamTypes of function types fails #134

TillAlex opened this issue Apr 17, 2020 · 2 comments · Fixed by #135

Comments

@TillAlex
Copy link
Contributor

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
@TillAlex
Copy link
Contributor Author

Thanks a lot! Would you mind pushing a new Nuget package?

@tannergooding
Copy link
Member

I'll try to get a new package up this weekend.

I'm attempting to get some other changes in for 10.0.0 including Span overloads and a new "managed" API that mirrors the LLVM C++ API first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants