aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/MultiplexExternalSemaSource.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-10-10 16:26:08 +0000
committerJustin Lebar <jlebar@google.com>2016-10-10 16:26:08 +0000
commit28f09c50e2f0712c39438b4363361ada90726b39 (patch)
treefde595734ed6bc062985a8c1ceab037cbe8e1a98 /clang/lib/Sema/MultiplexExternalSemaSource.cpp
parent11091971567af8a1609a81082eb8cfafaa5d4bda (diff)
downloadllvm-28f09c50e2f0712c39438b4363361ada90726b39.zip
llvm-28f09c50e2f0712c39438b4363361ada90726b39.tar.gz
llvm-28f09c50e2f0712c39438b4363361ada90726b39.tar.bz2
[Sema] Use unique_ptr instead of raw pointers in the late-parsed templates map.
Summary: This is possible now that MapVector supports move-only values. Depends on D25404. Reviewers: timshen Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25405 llvm-svn: 283766
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
-rw-r--r--clang/lib/Sema/MultiplexExternalSemaSource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/MultiplexExternalSemaSource.cpp b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
index eee4c00..077a56f 100644
--- a/clang/lib/Sema/MultiplexExternalSemaSource.cpp
+++ b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
@@ -285,7 +285,8 @@ void MultiplexExternalSemaSource::ReadPendingInstantiations(
}
void MultiplexExternalSemaSource::ReadLateParsedTemplates(
- llvm::MapVector<const FunctionDecl *, LateParsedTemplate *> &LPTMap) {
+ llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>>
+ &LPTMap) {
for (size_t i = 0; i < Sources.size(); ++i)
Sources[i]->ReadLateParsedTemplates(LPTMap);
}