Skip to content

Commit 40d1560

Browse files
committed
Always initialize pretty_name when reading a declaration
1 parent c674ce7 commit 40d1560

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ansi-c/ansi_c_declaration.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ void ansi_c_declarationt::to_symbol(
128128
symbol.value=declarator.value();
129129
symbol.type=full_type(declarator);
130130
symbol.name=declarator.get_name();
131+
symbol.pretty_name=symbol.name;
131132
symbol.base_name=declarator.get_base_name();
132133
symbol.is_type=get_is_typedef();
133134
symbol.location=declarator.source_location();

0 commit comments

Comments
 (0)