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

Calling C function in array init generates bad IR #104

Closed
BrettRToomey opened this issue Nov 25, 2017 · 1 comment
Closed

Calling C function in array init generates bad IR #104

BrettRToomey opened this issue Nov 25, 2017 · 1 comment
Labels

Comments

@BrettRToomey
Copy link
Collaborator

double :: struct {
    val, dual: f64
}

b := double {
    val: posix.sin(a.val),
    dual: posix.cos(a.val) * a.dual
}
@BrettRToomey
Copy link
Collaborator Author

It was actually an issue with mangling and C. Related to #93

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

No branches or pull requests

1 participant