forked from OSchip/llvm-project
				
			[asan] Fix build on Windows and PowerPC.
llvm-svn: 260175
This commit is contained in:
		
							parent
							
								
									fc1cab305f
								
							
						
					
					
						commit
						aa42f29221
					
				| 
						 | 
				
			
			@ -1202,6 +1202,7 @@ SignalContext::WriteFlag SignalContext::GetWriteFlag(void *context) {
 | 
			
		|||
  if (!Aarch64GetESR(ucontext, &esr)) return UNKNOWN;
 | 
			
		||||
  return esr & ESR_ELx_WNR ? WRITE : READ;
 | 
			
		||||
#else
 | 
			
		||||
  (void)ucontext;
 | 
			
		||||
  return UNKNOWN;  // FIXME: Implement.
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -744,7 +744,7 @@ SignalContext SignalContext::Create(void *siginfo, void *context) {
 | 
			
		|||
#endif
 | 
			
		||||
  uptr access_addr = exception_record->ExceptionInformation[1];
 | 
			
		||||
 | 
			
		||||
  bool write_flag = SignalContext::UNKNOWN;  // FIXME: compute this.
 | 
			
		||||
  WriteFlag write_flag = SignalContext::UNKNOWN;  // FIXME: compute this.
 | 
			
		||||
  bool is_memory_access = false;                  // FIXME: compute this.
 | 
			
		||||
  return SignalContext(context, access_addr, pc, sp, bp, is_memory_access,
 | 
			
		||||
                       write_flag);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue