diff options
Diffstat (limited to 'src/binaryen-c.cpp')
-rw-r--r-- | src/binaryen-c.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index 517ed42a6..2201f97bd 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -51,7 +51,8 @@ static_assert(sizeof(BinaryenLiteral) == sizeof(Literal), BinaryenLiteral toBinaryenLiteral(Literal x) { BinaryenLiteral ret; ret.type = x.type.getID(); - switch (x.type.getSingle()) { + TODO_SINGLE_COMPOUND(x.type); + switch (x.type.getBasic()) { case Type::i32: ret.i32 = x.geti32(); break; @@ -151,7 +152,7 @@ uint32_t BinaryenTypeArity(BinaryenType t) { return Type(t).size(); } void BinaryenTypeExpand(BinaryenType t, BinaryenType* buf) { const std::vector<Type>& types = Type(t).expand(); for (size_t i = 0; i < types.size(); ++i) { - buf[i] = types[i].getSingle(); + buf[i] = types[i].getID(); } } |