[compiler-rt] r197573 - [Sanitizers] Fix CL compile-time warning in the symbolizer
Timur Iskhodzhanov
timurrrr at google.com
Wed Dec 18 06:39:23 PST 2013
Author: timurrrr
Date: Wed Dec 18 08:39:23 2013
New Revision: 197573
URL: http://llvm.org/viewvc/llvm-project?rev=197573&view=rev
Log:
[Sanitizers] Fix CL compile-time warning in the symbolizer
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc?rev=197573&r1=197572&r2=197573&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc Wed Dec 18 08:39:23 2013
@@ -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;
}
More information about the llvm-commits
mailing list