[Orc] Tweak lambda capture lists to try to avoid an ICE on gcc-4.7.2. NFC.

Apparently gcc-4.7.2 is touchy about 'this' appearing in a lambda capture list
along with other captures. I've rewritten my captures to try to avoid the issue.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2015-02-09 07:22:56 +00:00
parent 522cf235e9
commit 9759a273fd
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ private:
case NotEmitted:
if (provides(Name, ExportedSymbolsOnly))
return JITSymbol(
[this,ExportedSymbolsOnly,Name,&B]() -> TargetAddress {
[=,&B]() -> TargetAddress {
if (EmitState == Emitting)
return 0;
else if (EmitState != Emitted) {

View 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 (NotifyFinalized)