diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-07 10:38:33 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-07 10:38:33 +0000 |
commit | f22679e3e5d5f5754931952e58112b4c863a4137 (patch) | |
tree | 703bcba80843be4e5e5a31a6cebb394aead9ec38 /lib/Analysis/GRState.cpp | |
parent | 13d1ee2ea780c749f8c2298d253b67d50535e493 (diff) |
Finish the implementation of VisitCompoundLiteralExpr. As VisitInitListExpr is
available, things get much simplified.
One addition is that CompoundLiteralExpr can appear both in rvalue and lvalue
context.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRState.cpp')
-rw-r--r-- | lib/Analysis/GRState.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/GRState.cpp b/lib/Analysis/GRState.cpp index a5bc429586..57f9c6b279 100644 --- a/lib/Analysis/GRState.cpp +++ b/lib/Analysis/GRState.cpp @@ -96,11 +96,10 @@ const GRState* GRStateManager::BindDecl(const GRState* St, const VarDecl* VD, /// array of initializer values. const GRState* GRStateManager::BindCompoundLiteral(const GRState* state, - const CompoundLiteralRegion* R, - const SVal* BegInit, const SVal* EndInit) { + const CompoundLiteralExpr* CL, SVal ILV) { Store oldStore = state->getStore(); - Store newStore = StoreMgr->BindCompoundLiteral(oldStore, R, BegInit, EndInit); + Store newStore = StoreMgr->BindCompoundLiteral(oldStore, CL, ILV); if (newStore == oldStore) return state; |