about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorRalf Sager <rsa@3fnc.org>2022-01-31 23:09:26 +0100
committerRalf Sager <rsa@3fnc.org>2022-01-31 23:09:26 +0100
commitc492355aa5282522f8653a4517506a9c0be31164 (patch)
treed35ee68ac7bb143e8ca9a3774c95407cfbbdab64 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentbbad745a688c933a43d1bd977756bd6fc7f034f2 (diff)
downloadrust-c492355aa5282522f8653a4517506a9c0be31164.tar.gz
rust-c492355aa5282522f8653a4517506a9c0be31164.zip
fix error handling for pthread_sigmask(3)
Errors from pthread_sigmask(3) were handled using cvt(), which expects a
return value of -1 on error and uses errno.
However, pthread_sigmask(3) returns 0 on success and an error number
otherwise.
Fix it by replacing cvt() with cvt_nz().
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions