Clang never evaluates expr in __builtin_assume
This commit is contained in:
parent
761383166e
commit
0cf9197988
Notes:
git
2021-10-04 08:13:58 +09:00
@ -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);
|
HANDLE h = open_special(path, 0, FILE_FLAG_OPEN_REPARSE_POINT);
|
||||||
|
|
||||||
if (h == INVALID_HANDLE_VALUE) {
|
if (h == INVALID_HANDLE_VALUE) {
|
||||||
ASSUME(e = GetLastError());
|
e = GetLastError();
|
||||||
|
ASSUME(e);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
if (!GetFileInformationByHandle(h, &st)) {
|
if (!GetFileInformationByHandle(h, &st)) {
|
||||||
ASSUME(e = GetLastError());
|
e = GetLastError();
|
||||||
|
ASSUME(e);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*atts = st.dwFileAttributes;
|
*atts = st.dwFileAttributes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user