aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-05 17:34:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-05 17:34:00 +0200
commitfebfafcf7f0e4d1cbe878e7dfffd9c9b78036aed (patch)
tree03d9fffbc37f7a9ecf213155bfdf9d9839dfb289 /build2/variable.txx
parente5e975934fd25811a79f3fc40ba7f94b7d1cb0b4 (diff)
Add support for first-access value typification during non-load phases
Diffstat (limited to 'build2/variable.txx')
-rw-r--r--build2/variable.txx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/variable.txx b/build2/variable.txx
index aebbe1a..e374f22 100644
--- a/build2/variable.txx
+++ b/build2/variable.txx
@@ -601,9 +601,9 @@ namespace build2
// Cache hit.
//
- if (i != m_.end () &&
- i->second.version == ver &&
- i->second.stem_vars == svars &&
+ if (i != m_.end () &&
+ i->second.version == ver &&
+ i->second.stem_vars == svars &&
i->second.stem_version == sver &&
(var.type == nullptr || i->second.value.type == var.type))
return pair<value&, ulock> (i->second.value, move (ul));