mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-06 06:37:31 +00:00
dwarf-reader: fix recursion in expr_result::operator&
operator& was implemented in terms of itself, leading to infinite recursion. Fix that by implementing it in terms of &='ing the const value. That is consistent with all other ?= operators. * src/abg-dwarf-reader.cc: fix expr_result::operator& Signed-off-by: Matthias Maennich <maennich@google.com>
This commit is contained in:
parent
573995d1f5
commit
90c32a8df5
@ -2626,7 +2626,7 @@ public:
|
||||
operator&(const expr_result& o)
|
||||
{
|
||||
expr_result r(*this);
|
||||
r.const_value_ = *this & o;
|
||||
r.const_value_ &= o.const_value_;
|
||||
r.is_const_ = r.is_const_ && o.is_const_;
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user