]> granicus.if.org Git - clang/commitdiff
Add accessor method to CompoundLiteralRegion to retrieve the CompoundLiteralExpr.
authorTed Kremenek <kremenek@apple.com>
Fri, 31 Oct 2008 00:04:54 +0000 (00:04 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 31 Oct 2008 00:04:54 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58476 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/MemRegion.h

index 13f8b9d84350aaf8afbb8f40c9ac538375023651..c35cda36c64ff1163e2b1de49ad6363551467274 100644 (file)
@@ -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;
   }