Skip to content

Commit 4769ad8

Browse files
author
Daniel Kroening
committed
cpp_typecheckt::typecheck_member_function now takes compound symbol as argument
1 parent cebbbd5 commit 4769ad8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/cpp/cpp_typecheck.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class cpp_typecheckt:public c_typecheck_baset
395395
static bool has_auto(const typet &type);
396396

397397
void typecheck_member_function(
398-
const irep_idt &compound_identifier,
398+
const symbolt &compound_symbol,
399399
struct_typet::componentt &component,
400400
irept &initializers,
401401
const typet &method_qualifier,

src/cpp/cpp_typecheck_compound_type.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void cpp_typecheckt::typecheck_compound_declarator(
509509
if(!is_virtual)
510510
{
511511
typecheck_member_function(
512-
symbol.name, component, initializers,
512+
symbol, component, initializers,
513513
method_qualifier, value);
514514

515515
if(!value.is_nil() && !is_static)
@@ -540,7 +540,7 @@ void cpp_typecheckt::typecheck_compound_declarator(
540540
}
541541

542542
typecheck_member_function(
543-
symbol.name,
543+
symbol,
544544
component,
545545
initializers,
546546
method_qualifier,
@@ -1262,7 +1262,7 @@ void cpp_typecheckt::move_member_initializers(
12621262
}
12631263

12641264
void cpp_typecheckt::typecheck_member_function(
1265-
const irep_idt &compound_identifier,
1265+
const symbolt &compound_symbol,
12661266
struct_typet::componentt &component,
12671267
irept &initializers,
12681268
const typet &method_qualifier,
@@ -1284,7 +1284,7 @@ void cpp_typecheckt::typecheck_member_function(
12841284
else
12851285
{
12861286
add_this_to_method_type(
1287-
compound_identifier,
1287+
compound_symbol.name,
12881288
type,
12891289
method_qualifier);
12901290
}

0 commit comments

Comments
 (0)