summaryrefslogtreecommitdiff
path: root/src/ir/manipulation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/manipulation.h')
-rw-r--r--src/ir/manipulation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir/manipulation.h b/src/ir/manipulation.h
index 54822f2bd..33c7d1bd7 100644
--- a/src/ir/manipulation.h
+++ b/src/ir/manipulation.h
@@ -41,6 +41,7 @@ template<typename InputType> inline Nop* nop(InputType* target) {
template<typename InputType>
inline RefNull* refNull(InputType* target, Type type) {
+ assert(type.isNullable() && type.getHeapType().isBottom());
auto* ret = convert<InputType, RefNull>(target);
ret->finalize(type);
return ret;