Skip to content

Commit 502d7e6

Browse files
authored
Merge pull request #3892 from diffblue/type_with_subtypest-constructor
avoid using deprecated constructor of type_with_subtypest
2 parents f23f4f3 + 37378c2 commit 502d7e6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ 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(
67+
ID_mathematical_function,
68+
{type_with_subtypest(irep_idt(), _domain), _codomain})
6769
{
68-
subtypes().resize(2);
69-
domain() = _domain;
70-
codomain() = _codomain;
7170
}
7271

7372
domaint &domain()

0 commit comments

Comments
 (0)