diff mbox series

abg-ir.cc: Remove duplicated line of code

Message ID 20200717142918.5826-1-gprocida@google.com
State New
Headers show
Series abg-ir.cc: Remove duplicated line of code | expand

Commit Message

Giuliano Procida July 17, 2020, 2:29 p.m. UTC
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>
---
 src/abg-ir.cc | 1 -
 1 file changed, 1 deletion(-)

Comments

Dodji Seketeli July 28, 2020, 4:53 p.m. UTC | #1
Giuliano Procida <gprocida@google.com> a écrit:

> 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>

Applied to master, thanks!

Cheers,
diff mbox series

Patch

diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index 757605f8..f91c42df 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -12301,7 +12301,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;