Skip to content

Commit 272636c

Browse files
committed
Use non-deprecated constructor of type_with_subtypest
type_with_subtypest requires subtypes.
1 parent c4f8887 commit 272636c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/ansi-c/merged_type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Author: Daniel Kroening, [email protected]
1515
class merged_typet : public type_with_subtypest
1616
{
1717
public:
18-
merged_typet() : type_with_subtypest(ID_merged_type)
18+
merged_typet() : type_with_subtypest(ID_merged_type, {})
1919
{
2020
}
2121

src/util/mathematical_types.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ class mathematical_function_typet : public type_with_subtypest
6363
using domaint = std::vector<typet>;
6464

6565
mathematical_function_typet(const domaint &_domain, const typet &_codomain)
66-
: type_with_subtypest(ID_mathematical_function)
66+
: type_with_subtypest(ID_mathematical_function, {type_with_subtypest("", _domain), _codomain})
6767
{
68-
subtypes().resize(2);
69-
domain() = _domain;
70-
codomain() = _codomain;
7168
}
7269

7370
domaint &domain()

0 commit comments

Comments
 (0)