From d3f4c05aea3781a40b8048e5192eaad3c30d165a Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 12 Jun 2016 16:13:55 +0000 Subject: Move instances of std::function. Or replace with llvm::function_ref if it's never stored. NFC intended. llvm-svn: 272513 --- llvm/lib/Linker/IRMover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Linker') 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 Src, ArrayRef ValuesToLink, std::function 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; -- cgit v1.2.3