Fix #137 by avoiding a C++11 feature.

Apparently, older MSVC versions don't support brace-initializers for
function arguments.

Thanks @baldurk for a suggestion on his branch.
This commit is contained in:
Dejan Mircevski 2016-01-20 10:19:25 -05:00
parent 7349eab099
commit 97605c86fd

View File

@ -1804,7 +1804,9 @@ Block& Builder::makeNewBlock()
Builder::LoopBlocks& Builder::makeNewLoop()
{
loops.push({makeNewBlock(), makeNewBlock(), makeNewBlock(), makeNewBlock()});
// Older MSVC versions don't allow inlining of blocks below.
LoopBlocks blocks = {makeNewBlock(), makeNewBlock(), makeNewBlock(), makeNewBlock()};
loops.push(blocks);
return loops.top();
}