summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 20:05:23 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 20:05:23 +0000
commitd6da1a097b218fc7fa15d4b89ab5a413858ff87d (patch)
tree791ddacf7f2fe167d827d926468f393cbcba5e24 /clang/lib/AST
parentea76b6fde2a02522d81e8702acb7bd02fca17258 (diff)
downloadbcm5719-llvm-d6da1a097b218fc7fa15d4b89ab5a413858ff87d.tar.gz
bcm5719-llvm-d6da1a097b218fc7fa15d4b89ab5a413858ff87d.zip
Add some std::move where the value is only read otherwise.
This mostly affects smart pointers. No functionality change intended. llvm-svn: 272520
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index fa46b24e57c..5fc7877322c 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -816,7 +816,7 @@ void ASTContext::AddDeallocation(void (*Callback)(void*), void *Data) {
void
ASTContext::setExternalSource(IntrusiveRefCntPtr<ExternalASTSource> Source) {
- ExternalSource = Source;
+ ExternalSource = std::move(Source);
}
void ASTContext::PrintStats() const {
OpenPOWER on IntegriCloud