mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
[Orc] Oops - lambda capture changed in r258206 was correct.
Fully qualify reference to Finalized in the body of the lambda instead to work around GCC ICE. llvm-svn: 258208
This commit is contained in:
parent
44cd309151
commit
1805d7e728
@ -135,10 +135,10 @@ private:
|
|||||||
|
|
||||||
JITSymbol::GetAddressFtor getSymbolMaterializer(std::string Name) override {
|
JITSymbol::GetAddressFtor getSymbolMaterializer(std::string Name) override {
|
||||||
return
|
return
|
||||||
[this, Name, &Finalized]() {
|
[this, Name]() {
|
||||||
// The symbol may be materialized between the creation of this lambda
|
// The symbol may be materialized between the creation of this lambda
|
||||||
// and its execution, so we need to double check.
|
// and its execution, so we need to double check.
|
||||||
if (!Finalized)
|
if (!this->Finalized)
|
||||||
finalize();
|
finalize();
|
||||||
return getSymbol(Name, false).getAddress();
|
return getSymbol(Name, false).getAddress();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user