Skip to content

Commit 93398ca

Browse files
committed
Made abstract_objectt::type() virtual
context_abstract_objectt:type() wanted to override it, but because the base class method wasn't virtual was just hiding it.
1 parent 56c3c76 commit 93398ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/analyses/variable-sensitivity/abstract_object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class abstract_objectt : public std::enable_shared_from_this<abstract_objectt>
121121
/// Get the real type of the variable this abstract object is representing.
122122
///
123123
/// \return The program type this abstract object represents
124-
const typet &type() const;
124+
virtual const typet &type() const;
125125

126126
/// Find out if the abstract object is top
127127
///

src/analyses/variable-sensitivity/context_abstract_object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class context_abstract_objectt : public abstract_objectt
5555
{
5656
}
5757

58-
virtual const typet &type() const
58+
const typet &type() const override
5959
{
6060
return child_abstract_object->type();
6161
}

0 commit comments

Comments
 (0)