summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index b0fe7c431..aa4512ea9 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -594,6 +594,10 @@ private:
}
curr->name = getStr();
bstack.back()->list.push_back(curr);
+ } else if (match("copy_local")) {
+ Name assign = getAssign();
+ skipComma();
+ setOutput(getInput(), assign);
} else if (match("return")) {
Block *temp;
if (!(func->body && (temp = func->body->dyn_cast<Block>()) && temp->name == FAKE_RETURN)) {