From cd2dd3df15523e2be8d2bbace27641d6ac9fa40d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 22 Feb 2015 22:43:40 +0000 Subject: Import compiler-rt trunk r230183. https://llvm.org/svn/llvm-project/compiler-rt/trunk@230183 --- lib/tsan/rtl/tsan_rtl_report.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/tsan/rtl/tsan_rtl_report.cc') diff --git a/lib/tsan/rtl/tsan_rtl_report.cc b/lib/tsan/rtl/tsan_rtl_report.cc index d1621454242c5..dc9438e6371b2 100644 --- a/lib/tsan/rtl/tsan_rtl_report.cc +++ b/lib/tsan/rtl/tsan_rtl_report.cc @@ -112,16 +112,10 @@ static ReportStack *SymbolizeStack(StackTrace trace) { for (uptr si = 0; si < trace.size; si++) { const uptr pc = trace.trace[si]; uptr pc1 = pc; -#ifndef SANITIZER_GO // We obtain the return address, but we're interested in the previous // instruction. if ((pc & kExternalPCBit) == 0) pc1 = StackTrace::GetPreviousInstructionPc(pc); -#else - // FIXME(dvyukov): Go sometimes uses address of a function as top pc. - if (si != trace.size - 1) - pc1 -= 1; -#endif SymbolizedStack *ent = SymbolizeCode(pc1); CHECK_NE(ent, 0); SymbolizedStack *last = ent; -- cgit v1.2.3