diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 7ae167efdb7..6d3a068ac69 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;