From 1f543f6eb368c3b23aa1f9cd2d23f0dba1456dec Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Jan 2017 12:44:15 +0200 Subject: Add notion of load phase generation --- build2/parser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/parser.cxx') diff --git a/build2/parser.cxx b/build2/parser.cxx index fe12b98..af6a6f5 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -1593,7 +1593,7 @@ namespace build2 if (type != nullptr) { if (var.type == nullptr) - var.type = type; + var_pool.update (const_cast (var), type); else if (var.type != type) fail (l) << "changing variable " << var << " type from " << var.type->name << " to " << type->name; -- cgit v1.1