[Sanitizers] Fix CL compile-time warning in the symbolizer

llvm-svn: 197573
This commit is contained in:
Timur Iskhodzhanov 2013-12-18 14:39:23 +00:00
parent 382ee385fd
commit caf7c0cdcd
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class WinSymbolizer : public Symbolizer {
AddressInfo *info = &frames[0];
info->Clear();
info->function = internal_strdup(symbol->Name);
info->function_offset = offset;
info->function_offset = (uptr)offset;
if (got_fileline) {
info->file = internal_strdup(line_info.FileName);
info->line = line_info.LineNumber;
@ -70,7 +70,7 @@ class WinSymbolizer : public Symbolizer {
mod_info.SizeOfStruct = sizeof(mod_info);
if (SymGetModuleInfo64(GetCurrentProcess(), addr, &mod_info))
info->FillAddressAndModuleInfo(addr, mod_info.ImageName,
addr - mod_info.BaseOfImage);
addr - (uptr)mod_info.BaseOfImage);
return 1;
}