[PATCH] D125920: [analyzer][NFC] Remove the unused LocAsInteger::getPersistentLoc()

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 20 07:07:09 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5450db5f54b8: [analyzer][NFC] Remove the unused LocAsInteger::getPersistentLoc() (authored by steakhal).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125920/new/

https://reviews.llvm.org/D125920

Files:
  clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h


Index: clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
===================================================================
--- clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
+++ clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
@@ -432,13 +432,6 @@
     return D->first.castAs<Loc>();
   }
 
-  Loc getPersistentLoc() const {
-    const std::pair<SVal, uintptr_t> *D =
-      static_cast<const std::pair<SVal, uintptr_t> *>(Data);
-    const SVal& V = D->first;
-    return V.castAs<Loc>();
-  }
-
   unsigned getNumBits() const {
     const std::pair<SVal, uintptr_t> *D =
       static_cast<const std::pair<SVal, uintptr_t> *>(Data);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125920.430961.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220520/78093904/attachment.bin>


More information about the cfe-commits mailing list