summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2019-08-22 08:49:41 +0000
committerHaojian Wu <hokein@google.com>2019-08-22 08:49:41 +0000
commitfcedc6a61bd152324bc6805bb8f0e0163f2af7d1 (patch)
tree3e477d0f840d82098f4057150dd27e61d01f42d7 /clang/lib/StaticAnalyzer
parentd420616313a3b4bc95a9effa00363cf3ad953e61 (diff)
downloadbcm5719-llvm-fcedc6a61bd152324bc6805bb8f0e0163f2af7d1.tar.gz
bcm5719-llvm-fcedc6a61bd152324bc6805bb8f0e0163f2af7d1.zip
Remove an unused function, suppress -Wunused-function warning.
llvm-svn: 369629
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
index 5c4daa3e428..8724e4acbc4 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
@@ -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 CallEvent &Call,
return true;
}
-void CastValueChecker::checkDeadSymbols(SymbolReaper &SR,
- CheckerContext &C) const {
- C.addTransition(removeDeadCasts(C.getState(), SR));
-}
-
void ento::registerCastValueChecker(CheckerManager &Mgr) {
Mgr.registerChecker<CastValueChecker>();
}
OpenPOWER on IntegriCloud