summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/Environment.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-29 00:15:44 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-29 00:15:44 +0000
commit605415923ff431a8fd92f8ff5a690001035f3872 (patch)
tree776567dd4138d29e2039acac8ea20f9a3a622a94 /clang/lib/StaticAnalyzer/Core/Environment.cpp
parent9d7feab3e04d2d00c9a7907ab990c00df6a0d65a (diff)
downloadbcm5719-llvm-605415923ff431a8fd92f8ff5a690001035f3872.tar.gz
bcm5719-llvm-605415923ff431a8fd92f8ff5a690001035f3872.zip
Remove an unused function (found by Clang's -Wunused-function)
llvm-svn: 136434
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/Environment.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/Environment.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Environment.cpp b/clang/lib/StaticAnalyzer/Core/Environment.cpp
index 92c4a4c581c..b34a481e327 100644
--- a/clang/lib/StaticAnalyzer/Core/Environment.cpp
+++ b/clang/lib/StaticAnalyzer/Core/Environment.cpp
@@ -126,18 +126,6 @@ public:
};
} // end anonymous namespace
-static bool isBlockExprInCallers(const Stmt *E, const LocationContext *LC) {
- const LocationContext *ParentLC = LC->getParent();
- while (ParentLC) {
- CFG &C = *ParentLC->getCFG();
- if (C.isBlkExpr(E))
- return true;
- ParentLC = ParentLC->getParent();
- }
-
- return false;
-}
-
// In addition to mapping from Stmt * - > SVals in the Environment, we also
// maintain a mapping from Stmt * -> SVals (locations) that were used during
// a load and store.
OpenPOWER on IntegriCloud