Handling of zero length last fields in struct used for growing it arbitrarily
authorSumant Kowshik <kowshik@uiuc.edu>
Tue, 6 Dec 2005 18:01:20 +0000 (18:01 +0000)
committerSumant Kowshik <kowshik@uiuc.edu>
Tue, 6 Dec 2005 18:01:20 +0000 (18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24620 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure/DSNode.h

index 7ae167efdb7dd1488e118cb1d56c5c60d520d5d1..6d3a068ac696b4a16b42f81026171b109ed798e5 100644 (file)
@@ -424,12 +424,13 @@ inline DSNode *DSNodeHandle::getNode() const {
   // Disabling this assertion because it is failing on a "magic" struct
   // in named (from bind).  The fourth field is an array of length 0,
   // presumably used to create struct instances of different sizes.
-  assert((!N ||
+  /*  assert((!N ||
           N->isNodeCompletelyFolded() ||
           (N->Size == 0 && Offset == 0) ||
           (int(Offset) >= 0 && Offset < N->Size) ||
           (int(Offset) < 0 && -int(Offset) < int(N->Size)) ||
           N->isForwarding()) && "Node handle offset out of range!");
+  */
   if (N == 0 || !N->isForwarding())
     return N;