Skip to content

Commit

Permalink
Clang never evaluates expr in __builtin_assume
Browse files Browse the repository at this point in the history
  • Loading branch information
xtkoba authored and nobu committed Oct 3, 2021
1 parent 7613831 commit 0cf9197
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions win32/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -5345,11 +5345,13 @@ get_attr_vsn(const WCHAR *path, DWORD *atts, DWORD *vsn)
HANDLE h = open_special(path, 0, FILE_FLAG_OPEN_REPARSE_POINT);

if (h == INVALID_HANDLE_VALUE) {
ASSUME(e = GetLastError());
e = GetLastError();
ASSUME(e);
return e;
}
if (!GetFileInformationByHandle(h, &st)) {
ASSUME(e = GetLastError());
e = GetLastError();
ASSUME(e);
}
else {
*atts = st.dwFileAttributes;
Expand Down

0 comments on commit 0cf9197

Please sign in to comment.