[llvm-commits] [compiler-rt] r168790 - /compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
Dmitry Vyukov
dvyukov at google.com
Wed Nov 28 05:30:06 PST 2012
Author: dvyukov
Date: Wed Nov 28 07:30:06 2012
New Revision: 168790
URL: http://llvm.org/viewvc/llvm-project?rev=168790&view=rev
Log:
tsan: explicitly say that failed to restore the stack
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc?rev=168790&r1=168789&r2=168790&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc Wed Nov 28 07:30:06 2012
@@ -151,6 +151,10 @@
#else
void PrintStack(const ReportStack *ent) {
+ if (ent == 0) {
+ Printf(" [failed to restore the stack]\n\n");
+ return;
+ }
for (int i = 0; ent; ent = ent->next, i++) {
Printf(" %s()\n %s:%d +0x%zx\n",
ent->func, ent->file, ent->line, (void*)ent->offset);
More information about the llvm-commits
mailing list