summaryrefslogtreecommitdiff
path: root/src/literal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/literal.h')
-rw-r--r--src/literal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/literal.h b/src/literal.h
index 1151abd2c..6696103e3 100644
--- a/src/literal.h
+++ b/src/literal.h
@@ -94,8 +94,9 @@ public:
explicit Literal(const std::array<Literal, 8>&);
explicit Literal(const std::array<Literal, 4>&);
explicit Literal(const std::array<Literal, 2>&);
- explicit Literal(Name func, Type type) : func(func), type(type) {}
- explicit Literal(std::shared_ptr<GCData> gcData, Type type);
+ explicit Literal(Name func, HeapType type)
+ : func(func), type(type, NonNullable) {}
+ explicit Literal(std::shared_ptr<GCData> gcData, HeapType type);
explicit Literal(std::unique_ptr<RttSupers>&& rttSupers, Type type);
Literal(const Literal& other);
Literal& operator=(const Literal& other);
@@ -257,8 +258,7 @@ public:
static Literal makeNull(HeapType type) {
return Literal(Type(type, Nullable));
}
- static Literal makeFunc(Name func,
- Type type = Type(HeapType::func, Nullable)) {
+ static Literal makeFunc(Name func, HeapType type) {
return Literal(func, type);
}
static Literal makeI31(int32_t value) {