diff options
| author | bors <bors@rust-lang.org> | 2022-03-22 05:48:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-22 05:48:49 +0000 |
| commit | b9c406741780945de12aa0e3b2c8ccd99a5e6316 (patch) | |
| tree | fae0a9a614795162cf68b0b687a683999d62f6d9 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 2d15732f6eec3d50ed1ad4a79c36b07d8b896474 (diff) | |
| parent | 6c407d0592288d3890d45590466b80a364f42982 (diff) | |
| download | rust-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
