summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-02-14 22:12:56 +0000
committerLang Hames <lhames@gmail.com>2018-02-14 22:12:56 +0000
commite833fe8ec31e1bc51d59c84af158ac44ed423153 (patch)
treeea435346f88da72eacfc97b0560dc294ccd2082e /llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
parent675752166de3746ebe0f8198e9c72989a4dccbc3 (diff)
downloadbcm5719-llvm-e833fe8ec31e1bc51d59c84af158ac44ed423153.tar.gz
bcm5719-llvm-e833fe8ec31e1bc51d59c84af158ac44ed423153.zip
[ORC] Switch to shared_ptr ownership for AsynchronousSymbolQueries.
Queries need to stay alive until each owner has set the values they are responsible for. llvm-svn: 325179
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
index 049bdac3cc7..9b9bedbecc7 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
@@ -196,8 +196,9 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoDuplicateFinalization) {
return cantFail(
lookupFlagsWithLegacyFn(SymbolFlags, Symbols, LegacyLookup));
},
- [&](AsynchronousSymbolQuery &Query, const SymbolNameSet &Symbols) {
- return lookupWithLegacyFn(Query, Symbols, LegacyLookup);
+ [&](std::shared_ptr<AsynchronousSymbolQuery> Query,
+ const SymbolNameSet &Symbols) {
+ return lookupWithLegacyFn(*Query, Symbols, LegacyLookup);
});
cantFail(ObjLayer.addObject(K2, std::move(Obj2)));
OpenPOWER on IntegriCloud