Skip to content

Commit 8edb663

Browse files
author
Daniel Kroening
committed
cpp_typecheckt::typecheck_member_function now takes compound symbol as argument
1 parent f6666ad commit 8edb663

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,
@@ -1264,7 +1264,7 @@ void cpp_typecheckt::move_member_initializers(
12641264
}
12651265

12661266
void cpp_typecheckt::typecheck_member_function(
1267-
const irep_idt &compound_identifier,
1267+
const symbolt &compound_symbol,
12681268
struct_typet::componentt &component,
12691269
irept &initializers,
12701270
const typet &method_qualifier,
@@ -1286,7 +1286,7 @@ void cpp_typecheckt::typecheck_member_function(
12861286
else
12871287
{
12881288
add_this_to_method_type(
1289-
compound_identifier,
1289+
compound_symbol.name,
12901290
type,
12911291
method_qualifier);
12921292
}

0 commit comments

Comments
 (0)