Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librustc_codegen_llvm: Use repr(transparent) for bitflags over repr(C) (
#61306) In order to make sure that Rust's bitflags types are passed the same way in the Rust ABI as they are in the C ABI, we need to use the attribute repr(transparent) over the repr(C) attribute for the single-field bitflags structs in in order to prevent ABI mismatches. Thanks to Michael Karcher for finding this bug.
- Loading branch information