From 36e21c60a5bc6b392069af2777dd310680588350 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 12 Dec 2023 09:28:56 -0800 Subject: 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. --- src/ir/module-utils.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ir/module-utils.cpp') 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)); -- cgit v1.2.3