diff options
author | Lang Hames <lhames@gmail.com> | 2016-01-19 22:32:58 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-01-19 22:32:58 +0000 |
commit | 951f73a2de5f74e8c8bbfe11c0e6944104cfdfea (patch) | |
tree | 8f9901cd5f420462fbd511c8c3a356941d64f487 | |
parent | 2c49e2e6645f952528a282d47b7b91523c0a2ab0 (diff) | |
download | bcm5719-llvm-951f73a2de5f74e8c8bbfe11c0e6944104cfdfea.tar.gz bcm5719-llvm-951f73a2de5f74e8c8bbfe11c0e6944104cfdfea.zip |
[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
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h b/llvm/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h index 3f7f0e78f69..affb16a1c26 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h @@ -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(); }; |