[cfe-commits] r58422 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Wed Oct 29 22:35:59 PDT 2008
Author: zhongxingxu
Date: Thu Oct 30 00:35:59 2008
New Revision: 58422
URL: http://llvm.org/viewvc/llvm-project?rev=58422&view=rev
Log:
Merge the array and struct case. They are essentially the same.
Modified:
cfe/trunk/lib/Analysis/GRExprEngine.cpp
Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=58422&r1=58421&r2=58422&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Thu Oct 30 00:35:59 2008
@@ -1631,7 +1631,7 @@
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 @@
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;
More information about the cfe-commits
mailing list