summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 16:13:55 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 16:13:55 +0000
commitd3f4c05aea3781a40b8048e5192eaad3c30d165a (patch)
tree0e501afe0df503cf86afe76a7324ce00c6460094 /llvm/lib/Linker
parentbdc4956bac81a93d541bc2fab0fdcc7ffdeb5cdd (diff)
downloadbcm5719-llvm-d3f4c05aea3781a40b8048e5192eaad3c30d165a.tar.gz
bcm5719-llvm-d3f4c05aea3781a40b8048e5192eaad3c30d165a.zip
Move instances of std::function.
Or replace with llvm::function_ref if it's never stored. NFC intended. llvm-svn: 272513
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/IRMover.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp
index 9c122f9af05..d2c6d78abe2 100644
--- a/llvm/lib/Linker/IRMover.cpp
+++ b/llvm/lib/Linker/IRMover.cpp
@@ -1342,7 +1342,7 @@ Error IRMover::move(
std::unique_ptr<Module> Src, ArrayRef<GlobalValue *> ValuesToLink,
std::function<void(GlobalValue &, ValueAdder Add)> AddLazyFor) {
IRLinker TheIRLinker(Composite, SharedMDs, IdentifiedStructTypes,
- std::move(Src), ValuesToLink, AddLazyFor);
+ std::move(Src), ValuesToLink, std::move(AddLazyFor));
Error E = TheIRLinker.run();
Composite.dropTriviallyDeadConstantArrays();
return E;
OpenPOWER on IntegriCloud