1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Clang never evaluates expr in __builtin_assume

This commit is contained in:
xtkoba 2021-05-02 15:45:42 +09:00 committed by Nobuyoshi Nakada
parent 761383166e
commit 0cf9197988
Notes: git 2021-10-04 08:13:58 +09:00

View file

@ -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;