[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:
Lang Hames 2016-01-19 22:32:58 +00:00
parent 2c49e2e664
commit 951f73a2de
1 changed files with 2 additions and 2 deletions

View File

@ -135,10 +135,10 @@ private:
JITSymbol::GetAddressFtor getSymbolMaterializer(std::string Name) override {
return
[this, Name, &Finalized]() {
[this, Name]() {
// The symbol may be materialized between the creation of this lambda
// and its execution, so we need to double check.
if (!Finalized)
if (!this->Finalized)
finalize();
return getSymbol(Name, false).getAddress();
};