Work around ASan/Win breakage by r193448
llvm-svn: 193501
This commit is contained in:
parent
7ad4100f8b
commit
a1d048acb7
|
|
@ -551,7 +551,9 @@ class ScopedInErrorReport {
|
||||||
|
|
||||||
static void ReportSummary(const char *error_type, StackTrace *stack) {
|
static void ReportSummary(const char *error_type, StackTrace *stack) {
|
||||||
AddressInfo ai;
|
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.
|
// Currently, we include the first stack frame into the report summary.
|
||||||
// Maybe sometimes we need to choose another frame (e.g. skip memcpy/etc).
|
// Maybe sometimes we need to choose another frame (e.g. skip memcpy/etc).
|
||||||
uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[0]);
|
uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[0]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue