Merge pull request #2834 from diffblue/protect-exprt-methods

add protection to internal methods of exprt
This commit is contained in:
Daniel Kroening 2018-08-26 12:05:35 +01:00 committed by GitHub
commit a6da811374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ public:
return static_cast<source_locationt &>(add(ID_C_source_location));
}
protected:
exprt &add_expr(const irep_idt &name)
{
return static_cast<exprt &>(add(name));
@ -149,6 +150,7 @@ public:
return static_cast<const exprt &>(find(name));
}
public:
void visit(class expr_visitort &visitor);
void visit(class const_expr_visitort &visitor) const;