aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/compile.cxx3
1 files changed, 1 insertions, 2 deletions
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<path_target*> (r);