ci: fix cgen for interface_struct_with_multi_nested_embed_test.v for gcc/clang
parent
a014844050
commit
d8cce0a71d
|
@ -6862,9 +6862,13 @@ static inline __shared__$interface_name ${shared_fn_name}(__shared__$cctype* x)
|
||||||
embed_sym := g.table.sym(embed_types.last())
|
embed_sym := g.table.sym(embed_types.last())
|
||||||
method_name := '${embed_sym.cname}_$method.name'
|
method_name := '${embed_sym.cname}_$method.name'
|
||||||
methods_wrapper.write_string('${method_name}(${fargs[0]}')
|
methods_wrapper.write_string('${method_name}(${fargs[0]}')
|
||||||
for embed in embed_types {
|
for idx_embed, embed in embed_types {
|
||||||
esym := g.table.sym(embed)
|
esym := g.table.sym(embed)
|
||||||
|
if idx_embed == 0 || embed_types[idx_embed - 1].is_any_kind_of_pointer() {
|
||||||
methods_wrapper.write_string('->$esym.embed_name()')
|
methods_wrapper.write_string('->$esym.embed_name()')
|
||||||
|
} else {
|
||||||
|
methods_wrapper.write_string('.$esym.embed_name()')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
methods_wrapper.writeln('${fargs[1..].join(', ')});')
|
methods_wrapper.writeln('${fargs[1..].join(', ')});')
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue