From 174353ca205ea646c82f13a0756a6e23f0f3d467 Mon Sep 17 00:00:00 2001 From: Jose Renau Date: Mon, 4 Dec 2023 17:28:24 -0800 Subject: [PATCH] fix compile error in gcc13 --- pass/lnast_fromlg/pass_lnast_fromlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pass/lnast_fromlg/pass_lnast_fromlg.cpp b/pass/lnast_fromlg/pass_lnast_fromlg.cpp index 0122fbb39..d76842300 100644 --- a/pass/lnast_fromlg/pass_lnast_fromlg.cpp +++ b/pass/lnast_fromlg/pass_lnast_fromlg.cpp @@ -953,7 +953,8 @@ void Pass_lnast_fromlg::attach_latch_node(Lnast& lnast, Lnast_nid& parent_node, } void Pass_lnast_fromlg::attach_subgraph_node(Lnast& lnast, Lnast_nid& parent_node, const Node_pin& pin) { - const auto& sub = pin.get_node().get_type_sub_node(); + auto node4pin = pin.get_node(); + const auto& sub = node4pin.get_type_sub_node(); // Create tuple names for submodule IO. std::string out_tup_name;