about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-22 05:48:49 +0000
committerbors <bors@rust-lang.org>2022-03-22 05:48:49 +0000
commitb9c406741780945de12aa0e3b2c8ccd99a5e6316 (patch)
treefae0a9a614795162cf68b0b687a683999d62f6d9 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent2d15732f6eec3d50ed1ad4a79c36b07d8b896474 (diff)
parent6c407d0592288d3890d45590466b80a364f42982 (diff)
downloadrust-b9c406741780945de12aa0e3b2c8ccd99a5e6316.tar.gz
rust-b9c406741780945de12aa0e3b2c8ccd99a5e6316.zip
Auto merge of #95158 - sunfishcode:sunfishcode/windows-8, r=joshtriplett
Preserve the Windows `GetLastError` error in `HandleOrInvalid`.

In the `TryFrom<HandleOrInvalid> for OwnedHandle` and
`TryFrom<HandleOrNull> for OwnedHandle` implemenations, `forget` the
owned handle on the error path, to avoid calling `CloseHandle` on an
invalid handle. It's harmless, except that it may overwrite the
thread's `GetLastError` error.

r? `@joshtriplett`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions