aboutsummaryrefslogtreecommitdiff
path: root/build/scope.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-05-25 16:13:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-05-25 16:13:22 +0200
commitf6c981e551f174809499163fc45c6fa54b8c5914 (patch)
treea17451657800c31634d68814b3959a3ece071123 /build/scope.cxx
parentcd4e709ead8a3e97eee0ef7b362240986e18fbd5 (diff)
Store pointer to map key rather than iterator
Clang's libc++ complains about a map iterator instantiation that has an incomplete value. At the same time, it appears that references (and thus pointers) to map elements are also stable.
Diffstat (limited to 'build/scope.cxx')
-rw-r--r--build/scope.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/scope.cxx b/build/scope.cxx
index 0495011..2b24702 100644
--- a/build/scope.cxx
+++ b/build/scope.cxx
@@ -88,7 +88,7 @@ namespace build
p = &find (k.directory ());
}
- s.i_ = er.first;
+ s.path_ = &er.first->first;
s.parent_ = p;
s.root_ = root ? &s : (p != nullptr ? p->root_ : nullptr);
}