[ORC] Move SimpleResourceManager function object inits out of constructor.
authorLang Hames <lhames@gmail.com>
Mon, 19 Oct 2020 07:15:58 +0000 (00:15 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 19 Oct 2020 07:19:46 +0000 (00:19 -0700)
commitd54c4e382114650ac8084b7511083253cbe9b8d1
tree7d37f6dc773bf631a2d1c5c3a33a4cca801cf1fb
parent0aa5e34f659121da76c0ce18d06735930d9d0775
[ORC] Move SimpleResourceManager function object inits out of constructor.

MSVC doesn't seem to like capturing references to variables in lambdas passed to
the variable's constructor. This should fix the windows bots that have been
unable to build the new ResourceTracker unit test.
llvm/unittests/ExecutionEngine/Orc/ResourceTrackerTest.cpp