diff mbox series

[applied] writer: Don't forget when emitting array subrange types

Message ID 87wnmabthj.fsf@redhat.com
State New
Headers show
Series [applied] writer: Don't forget when emitting array subrange types | expand

Commit Message

Dodji Seketeli Oct. 18, 2021, 8:57 a.m. UTC
Hello,

When looking into something else, I noticed that we were forgetting
when array subranges are emitted.  Fixed thus.

	* src/abg-writer.cc (write_array_subrange_type): Record the type
	as emitted.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to master.
---
 src/abg-writer.cc | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/src/abg-writer.cc b/src/abg-writer.cc
index 3848df77..6f2fee16 100644
--- a/src/abg-writer.cc
+++ b/src/abg-writer.cc
@@ -2921,6 +2921,8 @@  write_array_subrange_type(const array_type_def::subrange_sptr&	decl,
 
   o << "/>\n";
 
+  ctxt.record_type_as_emitted(decl);
+
   return true;
 }