-
-
Notifications
You must be signed in to change notification settings - Fork 577
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
Matrix gives llvm error when accessed with non-64-bit int #4284
Comments
(EDIT: works when m is not global) Get the also a llvm error with this code:
Here' the beginning of the error: entry: ; preds = %decls for.loop: ; preds = %switch.done, %entry for.body: ; preds = %for.loop ... |
This only seems to be caused when the matrix is a global variable, however, the following code runs fine: package bug
mat: matrix[4, 4]i64
main :: proc() {
c := mat[i32(0), i32(0)]
} |
Context
Expected Behavior
The matrix's element is returned
Current Behavior
Failure Information (for bugs)
It seems to me, that it is assumed, that matrix will only ever be accessed with an
i64
. (See: last line of LLVM error,i64
)Steps to Reproduce
Failure Logs
The rest of LLVM code seems unnecessary.
The text was updated successfully, but these errors were encountered: