summaryrefslogtreecommitdiff
path: root/src/passes/Monomorphize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Monomorphize.cpp')
-rw-r--r--src/passes/Monomorphize.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/passes/Monomorphize.cpp b/src/passes/Monomorphize.cpp
index f8ee4a6e6..012f24750 100644
--- a/src/passes/Monomorphize.cpp
+++ b/src/passes/Monomorphize.cpp
@@ -151,11 +151,6 @@ struct Monomorphize : public Pass {
// monomorphizing.
// Create a new function with refined parameters as a copy of the original.
- // (Note we must clear stack IR on the original: atm we do not have the
- // ability to copy stack IR, so we'd hit an internal error. But as we will
- // be optimizing the function anyhow, we'd be throwing away stack IR later
- // so this isn't a problem.)
- func->stackIR.reset();
auto refinedTarget = Names::getValidFunctionName(*module, target);
auto* refinedFunc = ModuleUtils::copyFunction(func, *module, refinedTarget);
TypeUpdating::updateParamTypes(refinedFunc, refinedTypes, *module);