aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/compile-rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc/compile-rule.cxx')
-rw-r--r--libbuild2/cc/compile-rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx
index a11b7ab..b96c39d 100644
--- a/libbuild2/cc/compile-rule.cxx
+++ b/libbuild2/cc/compile-rule.cxx
@@ -6051,7 +6051,7 @@ namespace build2
// Note that this is racy and someone might have created this target
// while we were preparing the prerequisite list.
//
- if (p.second.owns_lock ())
+ if (p.second)
{
bt.prerequisites (move (ps));
@@ -6129,7 +6129,7 @@ namespace build2
// Note that this is racy and someone might have created this target
// while we were preparing the prerequisite list.
//
- if (p.second.owns_lock ())
+ if (p.second)
bt.prerequisites (move (ps));
return bt;