Guarded a call to add_or_set_value
This commit is contained in:
parent
fa3805282a
commit
b3e21e8ae2
1 changed files with 2 additions and 1 deletions
|
|
@ -606,6 +606,7 @@ bool post_t::valid() const
|
||||||
void post_t::add_to_value(value_t& value, const optional<expr_t&>& expr) const
|
void post_t::add_to_value(value_t& value, const optional<expr_t&>& expr) const
|
||||||
{
|
{
|
||||||
if (xdata_ && xdata_->has_flags(POST_EXT_COMPOUND)) {
|
if (xdata_ && xdata_->has_flags(POST_EXT_COMPOUND)) {
|
||||||
|
if (! xdata_->compound_value.is_null())
|
||||||
add_or_set_value(value, xdata_->compound_value);
|
add_or_set_value(value, xdata_->compound_value);
|
||||||
}
|
}
|
||||||
else if (expr) {
|
else if (expr) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue