[llvm] r258208 - [Orc] Oops - lambda capture changed in r258206 was correct.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 19 14:32:59 PST 2016
Author: lhames
Date: Tue Jan 19 16:32:58 2016
New Revision: 258208
URL: http://llvm.org/viewvc/llvm-project?rev=258208&view=rev
Log:
[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.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h?rev=258208&r1=258207&r2=258208&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h Tue Jan 19 16:32:58 2016
@@ -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();
};
More information about the llvm-commits
mailing list