From: Raphael Isemann Date: Mon, 5 Aug 2019 12:23:39 +0000 (+0000) Subject: [clang][NFC] Remove unused private variable 'CI' in CrossTranslationUnit.h X-Git-Tag: llvmorg-11-init~12798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58f099173668ea0d046afa06eb648dc3ef259872;p=platform%2Fupstream%2Fllvm.git [clang][NFC] Remove unused private variable 'CI' in CrossTranslationUnit.h 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. llvm-svn: 367840 --- diff --git a/clang/include/clang/CrossTU/CrossTranslationUnit.h b/clang/include/clang/CrossTU/CrossTranslationUnit.h index f5a5212..b6a1993 100644 --- a/clang/include/clang/CrossTU/CrossTranslationUnit.h +++ b/clang/include/clang/CrossTU/CrossTranslationUnit.h @@ -197,7 +197,6 @@ private: ImporterMapTy ASTUnitImporterMap; - CompilerInstance &CI; ASTContext &Context; std::shared_ptr ImporterSharedSt; /// Map of imported FileID's (in "To" context) to FileID in "From" context diff --git a/clang/lib/CrossTU/CrossTranslationUnit.cpp b/clang/lib/CrossTU/CrossTranslationUnit.cpp index 512778d..f43180a 100644 --- a/clang/lib/CrossTU/CrossTranslationUnit.cpp +++ b/clang/lib/CrossTU/CrossTranslationUnit.cpp @@ -188,7 +188,7 @@ template 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() {}