diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-30 05:35:59 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-30 05:35:59 +0000 |
commit | 05d1c577a91605569dbaf6058dcf7600c532d073 (patch) | |
tree | 549b01262ec4eef9a68c61e27f0c36028b782701 /lib/Analysis/GRExprEngine.cpp | |
parent | 8cd5aaea92f12c25d65ecff5fc820def4c81c1aa (diff) |
Merge the array and struct case. They are essentially the same.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 0090075055..db2544e911 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -1631,7 +1631,7 @@ void GRExprEngine::VisitInitListExpr(InitListExpr* E, NodeTy* Pred, InitVals.reserve(NumInitElements); - if (T->isArrayType()) { + if (T->isArrayType() || T->isStructureType()) { for (unsigned i = 0; i < NumInitElements; ++i) { Expr* Init = E->getInit(i); NodeSet Tmp; @@ -1659,12 +1659,6 @@ void GRExprEngine::VisitInitListExpr(InitListExpr* E, NodeTy* Pred, return; } - if (T->isStructureType()) { - // FIXME: to be implemented. - MakeNode(Dst, E, Pred, state); - return; - } - if (Loc::IsLocType(T) || T->isIntegerType()) { assert (E->getNumInits() == 1); NodeSet Tmp; |