From fd8640dc09b99bee11745a4d5b176b2dee3400f4 Mon Sep 17 00:00:00 2001 From: Giuliano Procida Date: Fri, 17 Jul 2020 15:29:18 +0100 Subject: [PATCH] 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 --- src/abg-ir.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/abg-ir.cc b/src/abg-ir.cc index bea7403c..a66d55e9 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -12298,7 +12298,6 @@ decl_base::set_definition_of_declaration(const decl_base_sptr& d) { ABG_ASSERT(get_is_declaration_only()); priv_->definition_of_declaration_ = d; - priv_->definition_of_declaration_ = d; if (type_base *t = is_type(this)) if (type_base_sptr canonical_type = is_type(d)->get_canonical_type()) t->priv_->canonical_type = canonical_type;