Bug 1119072, Part 10: Work around internal compiler error in VS2015 (js), r=waldo

--HG--
extra : rebase_source : 1892631f8130c7eb09876b766fc13ad649e8616e
This commit is contained in:
Brian Smith 2015-01-09 01:21:37 -08:00
Родитель 7f449f0490
Коммит dc162e25f3
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -110,7 +110,9 @@ LBlock::init(TempAllocator &alloc)
if (!inputs)
return false;
LPhi *lphi = new (&phis_[phiIndex++]) LPhi(phi, inputs);
// MSVC 2015 cannot handle "new (&phis_[phiIndex++])"
void *addr = &phis_[phiIndex++];
LPhi *lphi = new (addr) LPhi(phi, inputs);
lphi->setBlock(this);
}
}