r369629 - Remove an unused function, suppress -Wunused-function warning.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 01:49:41 PDT 2019
Author: hokein
Date: Thu Aug 22 01:49:41 2019
New Revision: 369629
URL: http://llvm.org/viewvc/llvm-project?rev=369629&view=rev
Log:
Remove an unused function, suppress -Wunused-function warning.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp?rev=369629&r1=369628&r2=369629&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp Thu Aug 22 01:49:41 2019
@@ -51,7 +51,6 @@ public:
// 1) isa: The parameter is non-null, returns boolean.
// 2) isa_and_nonnull: The parameter is null or non-null, returns boolean.
bool evalCall(const CallEvent &Call, CheckerContext &C) const;
- void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const;
private:
// These are known in the LLVM project. The pairs are in the following form:
@@ -415,11 +414,6 @@ bool CastValueChecker::evalCall(const Ca
return true;
}
-void CastValueChecker::checkDeadSymbols(SymbolReaper &SR,
- CheckerContext &C) const {
- C.addTransition(removeDeadCasts(C.getState(), SR));
-}
-
void ento::registerCastValueChecker(CheckerManager &Mgr) {
Mgr.registerChecker<CastValueChecker>();
}
More information about the cfe-commits
mailing list