Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.150 -> 1.151 --- Log message: better c99 struct handling --- Diffs of the changes: (+1 -2) Local.cpp | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: llvm/lib/Analysis/DataStructure/Local.cpp diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.150 llvm/lib/Analysis/DataStructure/Local.cpp:1.151 --- llvm/lib/Analysis/DataStructure/Local.cpp:1.150 Wed Apr 19 10:34:02 2006 +++ llvm/lib/Analysis/DataStructure/Local.cpp Tue Apr 25 14:33:23 2006 @@ -1122,13 +1122,12 @@ for (unsigned i = 0, e = CS->getNumOperands(); i != e; ++i) { DSNode *NHN = NH.getNode(); //Some programmers think ending a structure with a [0 x sbyte] is cute - //This should be ok as the allocation type should grow this type when - //it is merged in if it is bigger. if (SL->MemberOffsets[i] < SL->StructSize) { DSNodeHandle NewNH(NHN, NH.getOffset()+(unsigned)SL->MemberOffsets[i]); MergeConstantInitIntoNode(NewNH, cast<Constant>(CS->getOperand(i))); } else if (SL->MemberOffsets[i] == SL->StructSize) { DEBUG(std::cerr << "Zero size element at end of struct\n"); + NHN->foldNodeCompletely(); } else { assert(0 && "type was smaller than offsets of of struct layout indicate"); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits