mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
[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:
parent
522cf235e9
commit
9759a273fd
@ -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) {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user