summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-12-06 14:49:18 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-12-06 14:49:18 +0000
commitf92d44c673f62676476a4cc035a28a894ac07180 (patch)
tree393dbfc0b64339da65317932353f2cb45367713f /clang/lib/CodeGen/CGBlocks.cpp
parent4fd1e7c628b6048b8c0f455bbe06b8c8c614335e (diff)
downloadbcm5719-llvm-f92d44c673f62676476a4cc035a28a894ac07180.tar.gz
bcm5719-llvm-f92d44c673f62676476a4cc035a28a894ac07180.zip
Fix two clang-tidy misc-move-forwarding-reference warnings
Patch by Michael Sharpe. llvm-svn: 288813
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 09911d4b099..50a6d61e7e5 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -1941,7 +1941,7 @@ static T *buildByrefHelpers(CodeGenModule &CGM, const BlockByrefInfo &byrefInfo,
generator.CopyHelper = buildByrefCopyHelper(CGM, byrefInfo, generator);
generator.DisposeHelper = buildByrefDisposeHelper(CGM, byrefInfo, generator);
- T *copy = new (CGM.getContext()) T(std::move(generator));
+ T *copy = new (CGM.getContext()) T(std::forward<T>(generator));
CGM.ByrefHelpersCache.InsertNode(copy, insertPos);
return copy;
}
OpenPOWER on IntegriCloud