]> granicus.if.org Git - clang/commitdiff
Drop a redundant ".get()" call (NFC)
authorVedant Kumar <vsk@apple.com>
Tue, 18 Oct 2016 18:19:02 +0000 (18:19 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 18 Oct 2016 18:19:02 +0000 (18:19 +0000)
Pointed out by Malcolm Parsons.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284510 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/SourceManager.cpp

index 4727b56b581c61b007f18d1abbbe4502af7b231f..380ca373e69b1171702ec1d083d0a69f69600f53 100644 (file)
@@ -1938,7 +1938,7 @@ SourceManager::getMacroArgExpandedLocation(SourceLocation Loc) const {
   std::unique_ptr<MacroArgsMap> &MacroArgsCache = MacroArgsCacheMap[FID];
   if (!MacroArgsCache) {
     MacroArgsCache = llvm::make_unique<MacroArgsMap>();
-    computeMacroArgsCache(*MacroArgsCache.get(), FID);
+    computeMacroArgsCache(*MacroArgsCache, FID);
   }
 
   assert(!MacroArgsCache->empty());