Tweak the way register restorers are created to try to fix OSX compilation
This commit is contained in:
parent
d882d51643
commit
a19ce37634
|
@ -1566,8 +1566,9 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func)
|
||||||
RegisterManager::instance()[c].set(context, save);
|
RegisterManager::instance()[c].set(context, save);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
auto saved_registers = parser.get_switch("save-regs").value_or("/\"|^@") |
|
Vector<decltype(make_register_restorer(0))> saved_registers;
|
||||||
transform(make_register_restorer) | gather<Vector<decltype(make_register_restorer(0))>>();
|
for (auto c : parser.get_switch("save-regs").value_or("/\"|^@"))
|
||||||
|
saved_registers.push_back(make_register_restorer(c));
|
||||||
|
|
||||||
if (auto bufnames = parser.get_switch("buffer"))
|
if (auto bufnames = parser.get_switch("buffer"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user