[lldb] Fix build after Clang API change
authorJan Svoboda <jan_svoboda@apple.com>
Tue, 30 May 2023 21:08:04 +0000 (14:08 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Tue, 30 May 2023 21:08:04 +0000 (14:08 -0700)
This fixes breakage introduced by 769d282d.

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

index 98c1b1a..7895fc6 100644 (file)
@@ -333,7 +333,7 @@ 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))