Adapt lldb to a40db5502b2515a6f2f1676b5d7a655ae0f41179
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 14 Dec 2020 22:41:12 +0000 (14:41 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 14 Dec 2020 22:41:15 +0000 (14:41 -0800)
The bots just told me about a place in LLDB I missed in
a40db5502b2515a6f2f1676b5d7a655ae0f41179 when changing
`HeaderSearch::LoadedModuleMaps`, but I think this will fix it.

lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp

index c014ad5..89cb9d5 100644 (file)
@@ -278,10 +278,10 @@ bool ClangModulesDeclVendorImpl::AddModule(const SourceModule &module,
           HS.getFileMgr().getDirectory(module.search_path.GetStringRef());
       if (!dir)
         return error();
-      auto *file = HS.lookupModuleMapFile(*dir, is_framework);
+      auto file = HS.lookupModuleMapFile(*dir, is_framework);
       if (!file)
         return error();
-      if (!HS.loadModuleMapFile(file, is_system))
+      if (!HS.loadModuleMapFile(*file, is_system))
         return error();
     }
   }