diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-31 00:04:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-31 00:04:54 +0000 |
commit | 11a83dc7a9a5738cc0bc76180b508eae896eefa9 (patch) | |
tree | 6e603401ee8adaf5e3c887bef6c10eea01c1c6f8 | |
parent | 0239f7f33a56cbb427b959b701a3561abe36b8bc (diff) |
Add accessor method to CompoundLiteralRegion to retrieve the CompoundLiteralExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58476 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Analysis/PathSensitive/MemRegion.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Analysis/PathSensitive/MemRegion.h b/include/clang/Analysis/PathSensitive/MemRegion.h index 13f8b9d843..c35cda36c6 100644 --- a/include/clang/Analysis/PathSensitive/MemRegion.h +++ b/include/clang/Analysis/PathSensitive/MemRegion.h @@ -237,6 +237,8 @@ public: void print(llvm::raw_ostream& os) const; + const CompoundLiteralExpr* getLiteralExpr() const { return CL; } + static bool classof(const MemRegion* R) { return R->getKind() == CompoundLiteralRegionKind; } |