aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/variable.hxx')
-rw-r--r--libbuild2/variable.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx
index cc4792e..b281844 100644
--- a/libbuild2/variable.hxx
+++ b/libbuild2/variable.hxx
@@ -1420,12 +1420,12 @@ namespace build2
variable_pool& operator= (const variable_pool&) = delete;
public:
- // RW access (only for shared pools).
+ // RW access (only for shared pools plus the temp_scope special case).
//
variable_pool&
rw () const
{
- assert (shared_->phase == run_phase::load);
+ assert (shared_ == nullptr || shared_->phase == run_phase::load);
return const_cast<variable_pool&> (*this);
}