summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorwalkingeyerobot <mitch@thefoley.net>2021-02-16 13:37:16 -0500
committerGitHub <noreply@github.com>2021-02-16 10:37:16 -0800
commita74bc72dbe6fa5f3edacfba160dc4e5d630b99b6 (patch)
tree87ef32b833cb2cae2b2a755eafb4dea407fa8337 /src/wasm-interpreter.h
parent3a368f480bcdc36564650f3c0236818613e5d510 (diff)
downloadbinaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.gz
binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.bz2
binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.zip
cleanup to allow binaryen to be built in more strict environments (#3566)
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index b216aa7ae..05135bfb3 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -192,6 +192,7 @@ public:
Index maxLoopIterations = NO_LIMIT)
: module(module), maxDepth(maxDepth), maxLoopIterations(maxLoopIterations) {
}
+ virtual ~ExpressionRunner() = default;
Flow visit(Expression* curr) {
depth++;
@@ -2066,6 +2067,7 @@ public:
// an imported function or accessing memory.
//
struct ExternalInterface {
+ virtual ~ExternalInterface() = default;
virtual void init(Module& wasm, SubType& instance) {}
virtual void importGlobals(GlobalManager& globals, Module& wasm) = 0;
virtual Literals callImport(Function* import, LiteralList& arguments) = 0;