From: Zhongxing Xu Date: Thu, 23 Oct 2008 01:35:34 +0000 (+0000) Subject: Added a method to ElementRegion. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e78e1b22f3b16bb2ef76950b9b75f060bdba7bf;p=clang Added a method to ElementRegion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58020 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/PathSensitive/MemRegion.h b/include/clang/Analysis/PathSensitive/MemRegion.h index a49233fb1c..ff419a8e06 100644 --- a/include/clang/Analysis/PathSensitive/MemRegion.h +++ b/include/clang/Analysis/PathSensitive/MemRegion.h @@ -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) {