Work around ASan/Win breakage by r193448

llvm-svn: 193501
This commit is contained in:
Timur Iskhodzhanov 2013-10-27 13:37:23 +00:00
parent 7ad4100f8b
commit a1d048acb7
1 changed files with 3 additions and 1 deletions

View File

@ -551,7 +551,9 @@ class ScopedInErrorReport {
static void ReportSummary(const char *error_type, StackTrace *stack) {
AddressInfo ai;
if (Symbolizer::Get()->IsAvailable()) {
// FIXME: The symbolizer interface should be changed in order to support
// Windows where we don't have a symbolizer.
if (!SANITIZER_WINDOWS && Symbolizer::Get()->IsAvailable()) {
// Currently, we include the first stack frame into the report summary.
// Maybe sometimes we need to choose another frame (e.g. skip memcpy/etc).
uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[0]);