aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-31 00:04:54 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-31 00:04:54 +0000
commit11a83dc7a9a5738cc0bc76180b508eae896eefa9 (patch)
tree6e603401ee8adaf5e3c887bef6c10eea01c1c6f8
parent0239f7f33a56cbb427b959b701a3561abe36b8bc (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.h2
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;
}