abg-ir.cc: Remove duplicated line of code

The commit

dbef379a Support incomplete enums in core and diff code.

added a duplicated line of code in error. This commit removes it.

	* src/abg-ir.cc (decl_base::set_definition_of_declaration):
	Remove duplicated assignment statement.

Signed-off-by: Giuliano Procida <gprocida@google.com>
This commit is contained in:
Giuliano Procida 2020-07-17 15:29:18 +01:00 committed by Dodji Seketeli
parent ca956fb48e
commit fd8640dc09

View File

@ -12298,7 +12298,6 @@ decl_base::set_definition_of_declaration(const decl_base_sptr& d)
{ {
ABG_ASSERT(get_is_declaration_only()); ABG_ASSERT(get_is_declaration_only());
priv_->definition_of_declaration_ = d; priv_->definition_of_declaration_ = d;
priv_->definition_of_declaration_ = d;
if (type_base *t = is_type(this)) if (type_base *t = is_type(this))
if (type_base_sptr canonical_type = is_type(d)->get_canonical_type()) if (type_base_sptr canonical_type = is_type(d)->get_canonical_type())
t->priv_->canonical_type = canonical_type; t->priv_->canonical_type = canonical_type;