[llvm-commits] [poolalloc] r110346 - /poolalloc/trunk/lib/DSA/Local.cpp
John Criswell
criswell at uiuc.edu
Thu Aug 5 10:33:39 PDT 2010
Author: criswell
Date: Thu Aug 5 12:33:39 2010
New Revision: 110346
URL: http://llvm.org/viewvc/llvm-project?rev=110346&view=rev
Log:
Added an assertion to make sure that DSNodes are large enough when merging in
constant initializers.
Fixed small indentation issue.
Modified:
poolalloc/trunk/lib/DSA/Local.cpp
Modified: poolalloc/trunk/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Local.cpp?rev=110346&r1=110345&r2=110346&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Local.cpp (original)
+++ poolalloc/trunk/lib/DSA/Local.cpp Thu Aug 5 12:33:39 2010
@@ -615,7 +615,7 @@
#endif
// Add in the offset calculated...
- Value.setOffset(Value.getOffset()+Offset);
+ Value.setOffset(Value.getOffset()+Offset);
// Check the offset
DSNode *N = Value.getNode();
@@ -1059,6 +1059,7 @@
// will point into a different offset into that DSNode.
//
DSNodeHandle NewNH (NHN, offset);
+ assert ((NewNH.getOffset() == offset) && "Need to resize DSNode!\n");
//
// Recursively merge in this element of the constant struture into the
More information about the llvm-commits
mailing list