diff options
Diffstat (limited to 'src/ir/utils.h')
-rw-r--r-- | src/ir/utils.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ir/utils.h b/src/ir/utils.h index 9bd3c9e0b..b7c5b9cba 100644 --- a/src/ir/utils.h +++ b/src/ir/utils.h @@ -281,7 +281,7 @@ struct AutoDrop : public WalkerPass<ExpressionStackWalker<AutoDrop>> { } if (maybeDrop(curr->list.back())) { reFinalize(); - assert(curr->type == none || curr->type == unreachable); + assert(curr->type == Type::none || curr->type == Type::unreachable); } } @@ -297,7 +297,7 @@ struct AutoDrop : public WalkerPass<ExpressionStackWalker<AutoDrop>> { } if (acted) { reFinalize(); - assert(curr->type == none); + assert(curr->type == Type::none); } } @@ -323,20 +323,21 @@ struct I64Utilities { }; static Expression* recreateI64(Builder& builder, Index low, Index high) { - return recreateI64( - builder, builder.makeLocalGet(low, i32), builder.makeLocalGet(high, i32)); + return recreateI64(builder, + builder.makeLocalGet(low, Type::i32), + builder.makeLocalGet(high, Type::i32)); }; static Expression* getI64High(Builder& builder, Index index) { return builder.makeUnary( WrapInt64, builder.makeBinary(ShrUInt64, - builder.makeLocalGet(index, i64), + builder.makeLocalGet(index, Type::i64), builder.makeConst(Literal(int64_t(32))))); } static Expression* getI64Low(Builder& builder, Index index) { - return builder.makeUnary(WrapInt64, builder.makeLocalGet(index, i64)); + return builder.makeUnary(WrapInt64, builder.makeLocalGet(index, Type::i64)); } }; |