diff options
author | Alon Zakai <azakai@google.com> | 2023-12-12 09:28:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 09:28:56 -0800 |
commit | 36e21c60a5bc6b392069af2777dd310680588350 (patch) | |
tree | 8c18841f33e6cf2d9aeb814d2ff2c0cf59c73d9a /src/ir/module-utils.cpp | |
parent | 0b70948126deb2af3447f70752098d6f7fcfd2ed (diff) | |
download | binaryen-36e21c60a5bc6b392069af2777dd310680588350.tar.gz binaryen-36e21c60a5bc6b392069af2777dd310680588350.tar.bz2 binaryen-36e21c60a5bc6b392069af2777dd310680588350.zip |
Inlining: Copy no-inline flags when copying a function (#6165)
Those fields should be copied together with all the rest of the metadata that
already is. This was just missed in the prior PR.
Diffstat (limited to 'src/ir/module-utils.cpp')
-rw-r--r-- | src/ir/module-utils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/module-utils.cpp b/src/ir/module-utils.cpp index cd865a79c..afe4a4c54 100644 --- a/src/ir/module-utils.cpp +++ b/src/ir/module-utils.cpp @@ -36,6 +36,9 @@ Function* copyFunction(Function* func, Module& out, Name newName) { ret->body = ExpressionManipulator::copy(func->body, out); ret->module = func->module; ret->base = func->base; + ret->noFullInline = func->noFullInline; + ret->noPartialInline = func->noPartialInline; + // TODO: copy Stack IR assert(!func->stackIR); return out.addFunction(std::move(ret)); |