]> granicus.if.org Git - clang/commitdiff
Added a method to ElementRegion.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 23 Oct 2008 01:35:34 +0000 (01:35 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 23 Oct 2008 01:35:34 +0000 (01:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58020 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/MemRegion.h

index a49233fb1cf14f40e6945bc28e7078c2ddf9a655..ff419a8e06b89caa507e944995587f68308dad32 100644 (file)
@@ -273,6 +273,8 @@ class ElementRegion : public SubRegion {
 
 public:
 
+  SVal getIndex() const { return Index; }
+
   void Profile(llvm::FoldingSetNodeID& ID) const;
 
   static bool classof(const MemRegion* R) {