[applied] ABIXML reader: Unconditionally map a pointer XML node to its decl

Message ID 87ikv8h59a.fsf@redhat.com
State New
Headers
Series [applied] ABIXML reader: Unconditionally map a pointer XML node to its decl |

Commit Message

Dodji Seketeli Sept. 6, 2024, 8:54 p.m. UTC
  Hello,

While looking at something else, I noticed that in some rare cases we
might omit to map the XML node representing a pointer to its decl.

	* src/abg-reader.cc (build_pointer_type_def): Unconditionally map
	a pointer type XML node to its decl.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
 src/abg-reader.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/src/abg-reader.cc b/src/abg-reader.cc
index 74c54336..c926d63a 100644
--- a/src/abg-reader.cc
+++ b/src/abg-reader.cc
@@ -4501,8 +4501,8 @@  build_pointer_type_def(reader&	rdr,
 
   maybe_set_artificial_location(rdr, node, t);
 
-  if (rdr.push_and_key_type_decl(t, node, add_to_current_scope))
-    rdr.map_xml_node_to_decl(node, t);
+  rdr.push_and_key_type_decl(t, node, add_to_current_scope);
+  rdr.map_xml_node_to_decl(node, t);
 
   // Read the stash from the XML node and stash it into the IR node.
   read_hash_and_stash(node, t);