As far as I can tell r228568 was the right workaround, and r228567 was
unnecessary. If reverting this causes problems on the bots I'll reinstate it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228585
91177308-0d34-0410-b5e6-
96231b3b80d8
case NotEmitted:
if (provides(Name, ExportedSymbolsOnly))
return JITSymbol(
- [=,&B]() -> TargetAddress {
+ [this,ExportedSymbolsOnly,Name,&B]() -> TargetAddress {
if (this->EmitState == Emitting)
return 0;
else if (this->EmitState != Emitted) {
bool ExportedSymbolsOnly) {
if (auto Addr = H->getSymbolAddress(Name, ExportedSymbolsOnly))
return JITSymbol(
- [=](){
+ [this, Addr, H](){
if (H->NeedsFinalization()) {
H->Finalize();
if (this->NotifyFinalized)