Skip to content

Commit a172c34

Browse files
committed
C++ virtual tables: fix inconsistent string suffixes
1 parent ec5425e commit a172c34

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cpp/cpp_typecheck_compound_type.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ void cpp_typecheckt::typecheck_compound_declarator(
447447
virtual_name+="$const";
448448

449449
if(has_volatile(method_qualifier))
450-
virtual_name+="$virtual";
450+
virtual_name += "$volatile";
451451

452452
if(component.type().get(ID_return_type)==ID_destructor)
453453
virtual_name="@dtor";

src/cpp/cpp_typecheck_function.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ irep_idt cpp_typecheckt::function_identifier(const typet &type)
168168
const typet &pointer=it->type();
169169
const typet &symbol =pointer.subtype();
170170
if(symbol.get_bool(ID_C_constant))
171-
result+="const$";
171+
result += "$const";
172172
if(symbol.get_bool(ID_C_volatile))
173-
result+="volatile$";
173+
result += "$volatile";
174174
result+="this";
175175
first=false;
176176
it++;

0 commit comments

Comments
 (0)