From f7ffc8c6ffa5c11d671fbab0a10c341d61d82b22 Mon Sep 17 00:00:00 2001
From: Vassil Vassilev <v.g.vassilev@gmail.com>
Date: Wed, 30 Sep 2020 20:07:59 +0000
Subject: [PATCH] loadGlobalModuleIndex does not need a trigger source location

---
 core/metacling/src/TCling.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/metacling/src/TCling.cxx b/core/metacling/src/TCling.cxx
index 471da628140..fb68df5c7cb 100644
--- a/core/metacling/src/TCling.cxx
+++ b/core/metacling/src/TCling.cxx
@@ -1084,7 +1084,7 @@ static bool HasASTFileOnDisk(clang::Module *M, const clang::Preprocessor &PP, st
 }
 
 static bool HaveFullGlobalModuleIndex = false;
-static GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc, cling::Interpreter &interp)
+static GlobalModuleIndex *loadGlobalModuleIndex(cling::Interpreter &interp)
 {
    CompilerInstance &CI = *interp.getCI();
    Preprocessor &PP = CI.getPreprocessor();
@@ -1261,7 +1261,7 @@ static void RegisterCxxModules(cling::Interpreter &clingInterp)
       }
 
       if (supportedPlatform) {
-         loadGlobalModuleIndex(SourceLocation(), clingInterp);
+         loadGlobalModuleIndex(clingInterp);
          // FIXME: The ASTReader still calls loadGlobalIndex and loads the file
          // We should investigate how to suppress it completely.
          GlobalIndex = CI.getModuleManager()->getGlobalIndex();
-- 
GitLab