From 3b4cb935f83c7fabacbf61146e56dabc0d65a441 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Fri, 18 Sep 2020 15:50:25 -0700 Subject: Initial implementation of "Memory64" proposal (#3130) Also includes a lot of new spec tests that eventually need to go into the spec repo --- src/ir/ExpressionAnalyzer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ir/ExpressionAnalyzer.cpp') diff --git a/src/ir/ExpressionAnalyzer.cpp b/src/ir/ExpressionAnalyzer.cpp index 37ba82e81..a8d9ce44a 100644 --- a/src/ir/ExpressionAnalyzer.cpp +++ b/src/ir/ExpressionAnalyzer.cpp @@ -475,13 +475,11 @@ size_t ExpressionAnalyzer::hash(Expression* curr) { void visitLiteral(Literal curr) { rehash(digest, curr); } void visitType(Type curr) { rehash(digest, curr.getID()); } void visitIndex(Index curr) { - static_assert(sizeof(Index) == sizeof(int32_t), + static_assert(sizeof(Index) == sizeof(uint32_t), "wasm64 will need changes here"); rehash(digest, curr); } void visitAddress(Address curr) { - static_assert(sizeof(Address) == sizeof(int32_t), - "wasm64 will need changes here"); rehash(digest, curr.addr); } }; -- cgit v1.2.3