aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}