Author: kremenek
Date: Thu Oct 30 19:04:54 2008
New Revision: 58476

URL: http://llvm.org/viewvc/llvm-project?rev=58476&view=rev
Log:
Add accessor method to CompoundLiteralRegion to retrieve the 
CompoundLiteralExpr.

Modified:
    cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h

Modified: cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h?rev=58476&r1=58475&r2=58476&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h Thu Oct 30 
19:04:54 2008
@@ -237,6 +237,8 @@
   
   void print(llvm::raw_ostream& os) const;
 
+  const CompoundLiteralExpr* getLiteralExpr() const { return CL; }
+  
   static bool classof(const MemRegion* R) {
     return R->getKind() == CompoundLiteralRegionKind;
   }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to