diff options
Diffstat (limited to 'src/passes/DeadArgumentElimination.cpp')
-rw-r--r-- | src/passes/DeadArgumentElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/DeadArgumentElimination.cpp b/src/passes/DeadArgumentElimination.cpp index a20ff1fb8..9fed4f1dc 100644 --- a/src/passes/DeadArgumentElimination.cpp +++ b/src/passes/DeadArgumentElimination.cpp @@ -409,7 +409,7 @@ private: // Remove the parameter from the function. We must add a new local // for uses of the parameter, but cannot make it use the same index // (in general). - std::vector<Type> params = func->sig.params.expand(); + std::vector<Type> params(func->sig.params.begin(), func->sig.params.end()); auto type = params[i]; params.erase(params.begin() + i); func->sig.params = Type(params); |