diff options
Diffstat (limited to 'build2/target.hxx')
-rw-r--r-- | build2/target.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/target.hxx b/build2/target.hxx index 0ed1aac..e541667 100644 --- a/build2/target.hxx +++ b/build2/target.hxx @@ -935,12 +935,6 @@ namespace build2 } const target_type* - load (memory_order mo = memory_order_consume) - { - return target != nullptr ? target : prerequisite.target.load (mo); - } - - const target_type* search_existing () const { return target != nullptr @@ -948,6 +942,12 @@ namespace build2 : build2::search_existing (prerequisite); } + const target_type* + load (memory_order mo = memory_order_consume) + { + return target != nullptr ? target : prerequisite.target.load (mo); + } + // Return as a new prerequisite instance. // prerequisite_type |