sanitizer_common: fix deadlock detector output
authorDmitry Vyukov <dvyukov@google.com>
Tue, 26 Oct 2021 13:01:09 +0000 (15:01 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 26 Oct 2021 14:11:52 +0000 (16:11 +0200)
commitd53abf834c4fde7a904b9cb7b1913ee38c768f21
tree850ecffc0e073b1355939675dd769bd3049f59c7
parent1c2e249f938c50e1b331a1f7adc83c0a381f3897
sanitizer_common: fix deadlock detector output

Print PC of the previous lock, not the current one.
The current one will be printed during unwind.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D112533
compiler-rt/lib/sanitizer_common/sanitizer_mutex.cpp