about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2022-04-03 17:03:59 -0400
committerBen Kimock <kimockb@gmail.com>2022-04-03 17:03:59 -0400
commit34bcc8e8ff73725e160e630be147a295bd5c7a13 (patch)
tree940afeff1c45699e3888b483b6bcc965986f84e3 /compiler/rustc_codegen_llvm/src/builder.rs
parent168a0209002fef203e83989ff641c1b3e1a51859 (diff)
downloadrust-34bcc8e8ff73725e160e630be147a295bd5c7a13.tar.gz
rust-34bcc8e8ff73725e160e630be147a295bd5c7a13.zip
Don't cast thread name to an integer for prctl
libc::prctl and the prctl definitions in glibc, musl, and the kernel
headers are C variadic functions. Therefore, all the arguments (except
for the first) are untyped. It is only the Linux man page which says
that prctl takes 4 unsigned long arguments. I have no idea why it says
this.

In any case, the upshot is that we don't need to cast the pointer to an
integer and confuse Miri.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions