summaryrefslogtreecommitdiff
path: root/test/example/cpp-threads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/cpp-threads.cpp')
-rw-r--r--test/example/cpp-threads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example/cpp-threads.cpp b/test/example/cpp-threads.cpp
index 4a41249e7..07c3049d8 100644
--- a/test/example/cpp-threads.cpp
+++ b/test/example/cpp-threads.cpp
@@ -16,8 +16,8 @@ void worker() {
BinaryenFunctionTypeRef iii = BinaryenAddFunctionType(module, "iii", BinaryenTypeInt32(), params, 2);
// Get the 0 and 1 arguments, and add them
- BinaryenExpressionRef x = BinaryenGetLocal(module, 0, BinaryenTypeInt32()),
- y = BinaryenGetLocal(module, 1, BinaryenTypeInt32());
+ BinaryenExpressionRef x = BinaryenLocalGet(module, 0, BinaryenTypeInt32()),
+ y = BinaryenLocalGet(module, 1, BinaryenTypeInt32());
BinaryenExpressionRef add = BinaryenBinary(module, BinaryenAddInt32(), x, y);
BinaryenExpressionRef ret = BinaryenReturn(module, add);