ruby-changes:68233
From: xtkoba <ko1@a...>
Date: Mon, 4 Oct 2021 08:13:54 +0900 (JST)
Subject: [ruby-changes:68233] 0cf9197988 (master): Clang never evaluates expr in `__builtin_assume`
https://git.ruby-lang.org/ruby.git/commit/?id=0cf9197988 From 0cf9197988a72f0defb670a8f03f8427d41c4bec Mon Sep 17 00:00:00 2001 From: xtkoba <69125751+xtkoba@u...> Date: Sun, 2 May 2021 15:45:42 +0900 Subject: Clang never evaluates expr in `__builtin_assume` --- win32/win32.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/win32/win32.c b/win32/win32.c index 23a69fda4d..c938e197a7 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5345,11 +5345,13 @@ get_attr_vsn(const WCHAR *path, DWORD *atts, DWORD *vsn) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5345 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; -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/