summaryrefslogtreecommitdiff
path: root/test/example/find_div0s.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-24 15:07:47 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-24 15:09:49 -0800
commit83cd8a4e2618e2883c97fc3a2fe58b544f8bf778 (patch)
treee8cadfd3c00f461e66c5eba2c8781eda1c5345bf /test/example/find_div0s.cpp
parente97c5c94c14e83ff7535bafb80a9ae0bae332030 (diff)
downloadbinaryen-83cd8a4e2618e2883c97fc3a2fe58b544f8bf778.tar.gz
binaryen-83cd8a4e2618e2883c97fc3a2fe58b544f8bf778.tar.bz2
binaryen-83cd8a4e2618e2883c97fc3a2fe58b544f8bf778.zip
create an AllocatingModule which handles allocation for its elements
Diffstat (limited to 'test/example/find_div0s.cpp')
-rw-r--r--test/example/find_div0s.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/find_div0s.cpp b/test/example/find_div0s.cpp
index 60eed5f62..d09f1de55 100644
--- a/test/example/find_div0s.cpp
+++ b/test/example/find_div0s.cpp
@@ -27,7 +27,7 @@ int main() {
// Parse the S-Expression text, and prepare to build a WebAssembly module.
SExpressionParser parser(input);
Element& root = *parser.root;
- Module module;
+ AllocatingModule module;
// The parsed code has just one element, the module. Build the module
// from that (and abort on any errors, but there won't be one here).