You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For LLVM to recognize the void pointer type and by extension functions like malloc(), we need to have it represented as i8* in LLVM bitcode. The enum used here ensures this and prevents misuse of the "raw" type by only having private variants.
Since Rust lost private variants months ago, perhaps another approach should be considered.
The text was updated successfully, but these errors were encountered:
But I don't know if this will actually be treated the same by LLVM.
kmcallister
added
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
A-FFI
Area: Foreign function interface (FFI)
labels
Jan 16, 2015
From the docs: http://doc.rust-lang.org/libc/types/common/c95/enum.c_void.html
Since Rust lost private variants months ago, perhaps another approach should be considered.
The text was updated successfully, but these errors were encountered: