[PATCH] D28299: Module: use PCMCache to manage memory buffers for pcm files.

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 15 08:57:41 PDT 2017

aprantl added a comment.

Drive-by comment.

Comment at: clang/lib/Basic/MemoryBufferCache.cpp:18
+                             std::unique_ptr<llvm::MemoryBuffer> Buffer) {
+  auto Insertion = Buffers.insert(std::make_pair(
+      Filename, BufferEntry{std::move(Buffer), NextIndex++}));
we should be able to replace the `std::make_pair()` with `{}`.


More information about the cfe-commits mailing list