From 1821a11704143a89581b26e285d968230b86a8ac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 10 Feb 2017 17:27:55 +0200 Subject: Track variable value modifications --- build2/scope.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/scope.cxx') diff --git a/build2/scope.cxx b/build2/scope.cxx index 0b76647..aaa0077 100644 --- a/build2/scope.cxx +++ b/build2/scope.cxx @@ -507,7 +507,7 @@ namespace build2 lookup l (find_original (var).first); if (l.defined () && l.belongs (*this)) // Existing var in this scope. - return const_cast (*l); // Ok since this is original. + return vars.modify (l); // Ok since this is original. value& r (assign (var)); // NULL. -- cgit v1.1