When recompiled an expr_t, forget old definitions.
This commit is contained in:
parent
b7632e7475
commit
4854cead4f
1 changed files with 5 additions and 1 deletions
|
|
@ -49,6 +49,9 @@ expr_t::ptr_op_t expr_t::op_t::compile(scope_t& scope)
|
||||||
}
|
}
|
||||||
return copy(def);
|
return copy(def);
|
||||||
}
|
}
|
||||||
|
else if (left()) {
|
||||||
|
return copy();
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -427,7 +430,8 @@ void expr_t::op_t::dump(std::ostream& out, const int depth) const
|
||||||
|
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case VALUE:
|
case VALUE:
|
||||||
out << "VALUE: " << as_value();
|
out << "VALUE: ";
|
||||||
|
as_value().dump(out);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDENT:
|
case IDENT:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue