From 96c0fa8b42b23ca5ebff20b20c1208093c1a4c97 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 4 Dec 2008 01:12:41 +0000 Subject: [PATCH] Add comments. llvm-svn: 60516 --- clang/lib/Analysis/RegionStore.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 9753b914f2c7..006b613528f7 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -148,7 +148,13 @@ private: Store BindStructToVal(Store store, const TypedRegion* BaseR, SVal V); Store BindStructToSymVal(Store store, const TypedRegion* BaseR); + /// Retrieve the values in a struct and return a CompoundVal, used when doing + /// struct copy: + /// struct s x, y; + /// x = y; + /// y's value is retrieved by this method. SVal RetrieveStruct(Store store, const TypedRegion* R); + Store BindStruct(Store store, const TypedRegion* R, SVal V); // Utility methods. -- GitLab