Fix unexplainable bug in MSVC.

This looks like a code generation bug.

In the old case while calling universal->generate() with first
non-zero argument inside generate() call the value was zero.
This commit is contained in:
John Preston 2020-01-22 02:14:07 +03:00
parent 721d143c89
commit 3b6a44c4f8

View file

@ -831,9 +831,10 @@ void Instance::generateCache() {
universal = Universal, universal = Universal,
guard = _generating.make_guard() guard = _generating.make_guard()
]() mutable { ]() mutable {
auto image = universal->generate(size, index);
crl::on_main(std::move(guard), [ crl::on_main(std::move(guard), [
=, =,
image = universal->generate(size, index) image = std::move(image)
]() mutable { ]() mutable {
if (universal != Universal) { if (universal != Universal) {
return; return;