[clang] 9567cfd - [StaticAnalyzer] Remove unused function hasGlobalsOrParametersStorage

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 13 00:25:05 PDT 2023


Author: Kazu Hirata
Date: 2023-06-13T00:24:47-07:00
New Revision: 9567cfd03432e3ac27201af6f5b479dda28cbf0c

URL: https://github.com/llvm/llvm-project/commit/9567cfd03432e3ac27201af6f5b479dda28cbf0c
DIFF: https://github.com/llvm/llvm-project/commit/9567cfd03432e3ac27201af6f5b479dda28cbf0c.diff

LOG: [StaticAnalyzer] Remove unused function hasGlobalsOrParametersStorage

The last use was removed by:

  commit e2e37b9afc0a0a66a1594377a88221e115d95348
  Author: Ted Kremenek <kremenek at apple.com>
  Date:   Thu Jul 28 23:08:02 2011 +0000

Added: 
    

Modified: 
    clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
    clang/lib/StaticAnalyzer/Core/MemRegion.cpp

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
index e982384b3fb00..9c4730a0b46f8 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
@@ -136,8 +136,6 @@ class MemRegion : public llvm::FoldingSetNode {
   /// It might return null.
   const SymbolicRegion *getSymbolicBase() const;
 
-  bool hasGlobalsOrParametersStorage() const;
-
   bool hasStackStorage() const;
 
   bool hasStackNonParametersStorage() const;

diff  --git a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
index 7cda64d6a028a..5f054129c669c 100644
--- a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
+++ b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
@@ -1285,10 +1285,6 @@ bool MemRegion::hasStackParametersStorage() const {
   return isa<StackArgumentsSpaceRegion>(getMemorySpace());
 }
 
-bool MemRegion::hasGlobalsOrParametersStorage() const {
-  return isa<StackArgumentsSpaceRegion, GlobalsSpaceRegion>(getMemorySpace());
-}
-
 // Strips away all elements and fields.
 // Returns the base region of them.
 const MemRegion *MemRegion::getBaseRegion() const {


        


More information about the cfe-commits mailing list