From d263455d5ac0d87541144dd7a37eb6255b721a89 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Feb 2017 11:55:03 +0200 Subject: Redesign target_set interface in preparation for locking --- build2/cc/compile.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'build2/cc') diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index 1fed762..590ba7c 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -981,8 +981,7 @@ namespace build2 // an existing file) and go straight for the target object since // we need to find the target explicitly spelled out. // - auto i (targets.find (*tt, d, out, n, e, trace)); - r = i != targets.end () ? i->get () : nullptr; + r = targets.find (*tt, d, out, n, e, trace); } return static_cast (r); -- cgit v1.1