Small follow up to lock address description: now that we describe

lock address, we can print something even if the lock observation
has no stacktrace.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14190
This commit is contained in:
Philippe Waroquiers 2014-07-24 22:30:08 +00:00
parent 1b15a83afa
commit 9a5cacfa97

View File

@ -764,8 +764,6 @@ static void announce_LockP ( Lock* lk )
if (lk == Lock_INVALID)
return; /* Can't be announced -- we know nothing about it. */
tl_assert(lk->magic == LockP_MAGIC);
if (!lk->appeared_at)
return; /* There's nothing we can show */
if (VG_(clo_xml)) {
/* fixme: add announcement */