diff options
author | Justin Lebar <jlebar@google.com> | 2016-10-10 16:26:08 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-10-10 16:26:08 +0000 |
commit | 28f09c50e2f0712c39438b4363361ada90726b39 (patch) | |
tree | fde595734ed6bc062985a8c1ceab037cbe8e1a98 /clang/lib/Sema/MultiplexExternalSemaSource.cpp | |
parent | 11091971567af8a1609a81082eb8cfafaa5d4bda (diff) | |
download | llvm-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.cpp | 3 |
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); } |