[cfe-commits] r58476 - /cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h
Ted Kremenek
kremenek at apple.com
Thu Oct 30 17:04:56 PDT 2008
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;
}
More information about the cfe-commits
mailing list