diff options
author | Jeremy Day <jeremy@thebrowser.company> | 2024-06-03 10:22:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 10:22:44 -0700 |
commit | cb7690af09b95bb944baf1b5a9ffb18f86c12130 (patch) | |
tree | 6e56fdf6107ce2fce31db5225e239292c655d295 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 10ecdee651c47bd5a52b3039722601721372995b (diff) | |
download | llvm-cb7690af09b95bb944baf1b5a9ffb18f86c12130.zip llvm-cb7690af09b95bb944baf1b5a9ffb18f86c12130.tar.gz llvm-cb7690af09b95bb944baf1b5a9ffb18f86c12130.tar.bz2 |
[Support] Handle delete_pending case for Windows fs::status (#90655)
If a delete is pending on the file queried for status, a misleading
`permission_denied` error code will be returned (this is the correct
mapping of the error set by GetFileAttributesW). By querying the
underlying NTSTATUS code via ntdll's RtlGetLastNtStatus, this case can
be disambiguated. If this underlying error code indicates a pending
delete, fs::status will return a new `pending_delete` error code to be
handled by callers
Fixes #89137
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions