[llvm-commits] [poolalloc] r115319 - /poolalloc/trunk/lib/DSA/DataStructure.cpp
John Criswell
criswell at uiuc.edu
Fri Oct 1 10:58:00 PDT 2010
Author: criswell
Date: Fri Oct 1 12:57:59 2010
New Revision: 115319
URL: http://llvm.org/viewvc/llvm-project?rev=115319&view=rev
Log:
Added an assertion to add debugging in mergeTypeInfo().
Modified:
poolalloc/trunk/lib/DSA/DataStructure.cpp
Modified: poolalloc/trunk/lib/DSA/DataStructure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DataStructure.cpp?rev=115319&r1=115318&r2=115319&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DataStructure.cpp (original)
+++ poolalloc/trunk/lib/DSA/DataStructure.cpp Fri Oct 1 12:57:59 2010
@@ -332,6 +332,7 @@
if (!NewTy || NewTy->isVoidTy()) return;
if (isCollapsedNode()) return;
+ assert (getSize() && "DSNode size is zero!\n");
if (isArrayNode()) Offset %= getSize();
if (Offset >= getSize()) growSize(Offset+1);
More information about the llvm-commits
mailing list