]> granicus.if.org Git - clang/commitdiff
[clang][NFC] Remove unused private variable 'CI' in CrossTranslationUnit.h
authorRaphael Isemann <teemperor@gmail.com>
Mon, 5 Aug 2019 12:23:39 +0000 (12:23 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 5 Aug 2019 12:23:39 +0000 (12:23 +0000)
It seems because of the recent refactorings this variable has become unused
and now we get this warning in the build logs:

In file included from llvm/clang/lib/CrossTU/CrossTranslationUnit.cpp:12:
llvm/clang/include/clang/CrossTU/CrossTranslationUnit.h:200:21: warning: private field 'CI' is not used [-Wunused-private-field]
  CompilerInstance &CI;
                    ^

I'll remove them for now to get the builds back to green.

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

include/clang/CrossTU/CrossTranslationUnit.h
lib/CrossTU/CrossTranslationUnit.cpp

index f5a52126408f1ec0171f9f8c918afebc8993b5cf..b6a199329a728d5afb3655311e9e0d9f0e03d408 100644 (file)
@@ -197,7 +197,6 @@ private:
 
   ImporterMapTy ASTUnitImporterMap;
 
-  CompilerInstance &CI;
   ASTContext &Context;
   std::shared_ptr<ASTImporterSharedState> ImporterSharedSt;
   /// Map of imported FileID's (in "To" context) to FileID in "From" context
index 512778de56f40902b82a74aadea73bcf713c0fd3..f43180a2a279ee878265d935bc63581fd45afb5c 100644 (file)
@@ -188,7 +188,7 @@ template <typename T> static bool hasBodyOrInit(const T *D) {
 }
 
 CrossTranslationUnitContext::CrossTranslationUnitContext(CompilerInstance &CI)
-    : CI(CI), Context(CI.getASTContext()), ASTStorage(CI),
+    : Context(CI.getASTContext()), ASTStorage(CI),
       CTULoadThreshold(CI.getAnalyzerOpts()->CTUImportThreshold) {}
 
 CrossTranslationUnitContext::~CrossTranslationUnitContext() {}