summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-10-27 13:37:23 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-10-27 13:37:23 +0000
commite38046aae1f76e525c2466af20c27269185a37bf (patch)
treea369d9bd7a0483ff8979b5cd7b99eb20193b4074
parent42078706b87f5dc3f470bdd23853e48c50aaa017 (diff)
downloadcompiler-rt-e38046aae1f76e525c2466af20c27269185a37bf.tar.gz
compiler-rt-e38046aae1f76e525c2466af20c27269185a37bf.tar.bz2
compiler-rt-e38046aae1f76e525c2466af20c27269185a37bf.tar.xz
Work around ASan/Win breakage by r193448
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193501 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/asan/asan_report.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/asan/asan_report.cc b/lib/asan/asan_report.cc
index 5406ac02..ca060089 100644
--- a/lib/asan/asan_report.cc
+++ b/lib/asan/asan_report.cc
@@ -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]);