diff options
| author | Kostya Serebryany <kcc@google.com> | 2014-03-17 09:21:41 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2014-03-17 09:21:41 +0000 |
| commit | b9cb473fb8fc35b47679f9e2c1ea3e3195488098 (patch) | |
| tree | 375a4db1a618d3e319e3193c6fe197a407078377 /compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc | |
| parent | d674e6bdde6e948daef2b14ebf3a17811eee9c87 (diff) | |
| download | bcm5719-llvm-b9cb473fb8fc35b47679f9e2c1ea3e3195488098.tar.gz bcm5719-llvm-b9cb473fb8fc35b47679f9e2c1ea3e3195488098.zip | |
[sanitizer] fix build warnings; add an output test for the deadlock detecor
llvm-svn: 204035
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc index 91762f8566a..81bdffa8a3d 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc @@ -426,7 +426,7 @@ void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) { ScopedReport rep(ReportTypeDeadlock); for (int i = 0; i < r->n; i++) rep.AddMutex(r->loop[i].mtx_ctx0); - StackTrace stacks[ARRAY_SIZE(DDReport::loop)]; + StackTrace stacks[DDReport::kMaxLoopSize]; for (int i = 0; i < r->n; i++) { if (!r->loop[i].stk) continue; uptr size; |

