[Orc] Revert r228567 (GCC ICE workaround) - it doesn't seem to have helped.
authorLang Hames <lhames@gmail.com>
Mon, 9 Feb 2015 18:16:43 +0000 (18:16 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 9 Feb 2015 18:16:43 +0000 (18:16 +0000)
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

include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h

index 9761cd70183f0ad41f2018f5b26a3013fb2a149b..ebc28595f5899ae9a0e043bd1155263ce965a2e9 100644 (file)
@@ -44,7 +44,7 @@ private:
       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) {
index 127dfc91c016ed0bcc2adf9970fafc4bc0262832..3c742ff3421f8ac273a29406f7daa3422a2f6db0 100644 (file)
@@ -221,7 +221,7 @@ public:
                          bool ExportedSymbolsOnly) {
     if (auto Addr = H->getSymbolAddress(Name, ExportedSymbolsOnly))
       return JITSymbol(
-        [=](){
+        [this, Addr, H](){
           if (H->NeedsFinalization()) {
             H->Finalize();
             if (this->NotifyFinalized)