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:
		
							parent
							
								
									761383166e
								
							
						
					
					
						commit
						0cf9197988
					
				
				
				Notes:
				
					git
				
				2021-10-04 08:13:58 +09:00 
				
			
			
			
		
		
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 xtkoba
						xtkoba