summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r--src/tools/fuzzing.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index 714e2c84b..f13b99c3d 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -2120,13 +2120,7 @@ private:
return builder.makeRefFunc(func->name, type);
}
if (type.isRtt()) {
- Expression* ret = builder.makeRttCanon(type.getHeapType());
- if (type.getRtt().hasDepth()) {
- for (Index i = 0; i < type.getRtt().depth; i++) {
- ret = builder.makeRttSub(type.getHeapType(), ret);
- }
- }
- return ret;
+ return builder.makeRtt(type);
}
if (type.isTuple()) {
std::vector<Expression*> operands;