diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-12 16:13:55 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-12 16:13:55 +0000 |
commit | 022a8990dde86506804de63373ba431656c21a78 (patch) | |
tree | 9970b1abfd99bfc2ccd0719ec37b33f10be3ccc9 /lib/Linker/IRMover.cpp | |
parent | af18e017d2ae62fdb29c43f7ec1d6db2b1abeb1f (diff) |
Move instances of std::function.
Or replace with llvm::function_ref if it's never stored. NFC intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/IRMover.cpp')
-rw-r--r-- | lib/Linker/IRMover.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/IRMover.cpp b/lib/Linker/IRMover.cpp index 9c122f9af05..d2c6d78abe2 100644 --- a/lib/Linker/IRMover.cpp +++ b/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; |