summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-03-24 04:07:01 +0000
committerLang Hames <lhames@gmail.com>2015-03-24 04:07:01 +0000
commit1eea5a97b425c54ae41c7161ca4753225d90cfb7 (patch)
treeddbfb0412a290769cac473c5a479d00dd7445a3d
parentd2f887dd029a1613107dca4866320eb215882401 (diff)
downloadbcm5719-llvm-1eea5a97b425c54ae41c7161ca4753225d90cfb7.tar.gz
bcm5719-llvm-1eea5a97b425c54ae41c7161ca4753225d90cfb7.zip
[Orc] Use std::string to capture name by value.
This just updates the code to reflect the comment, but this bug actually hit the out-of-tree lazy demo. I'm working on a patch to add the lazy-demo's functionality to lli so that we can test this in-tree soon. llvm-svn: 233047
-rw-r--r--llvm/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h b/llvm/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
index 2b5db08c799..fe7eafce43d 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
@@ -49,7 +49,7 @@ private:
// Create a std::string version of Name to capture here - the argument
// (a StringRef) may go away before the lambda is executed.
// FIXME: Use capture-init when we move to C++14.
- auto PName = Name;
+ std::string PName = Name;
JITSymbolFlags Flags = JITSymbolBase::flagsFromGlobalValue(*GV);
auto GetAddress =
[this, ExportedSymbolsOnly, PName, &B]() -> TargetAddress {
OpenPOWER on IntegriCloud