diff options
author | Sumant Kowshik <kowshik@uiuc.edu> | 2005-12-06 18:01:20 +0000 |
---|---|---|
committer | Sumant Kowshik <kowshik@uiuc.edu> | 2005-12-06 18:01:20 +0000 |
commit | 14d1d22f370e47653d8f7e3f3ab4a409d24f878b (patch) | |
tree | 7724bc1a9b8e33831b1afb20f86a712814bf9f01 /include/llvm/Analysis/DataStructure/DSNode.h | |
parent | ed74a4ef3b813bed0c0f4bb5af42229d50133da2 (diff) |
Handling of zero length last fields in struct used for growing it arbitrarily
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DSNode.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 7ae167efdb..6d3a068ac6 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -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; |