Changes in directory llvm/include/llvm/Analysis:
ET-Forest.h updated: 1.2 -> 1.3 --- Log message: add an assert, patch by Daniel Berlin --- Diffs of the changes: (+1 -0) ET-Forest.h | 1 + 1 files changed, 1 insertion(+) Index: llvm/include/llvm/Analysis/ET-Forest.h diff -u llvm/include/llvm/Analysis/ET-Forest.h:1.2 llvm/include/llvm/Analysis/ET-Forest.h:1.3 --- llvm/include/llvm/Analysis/ET-Forest.h:1.2 Sun Jan 8 03:10:46 2006 +++ llvm/include/llvm/Analysis/ET-Forest.h Sun Jan 15 15:46:23 2006 @@ -50,6 +50,7 @@ Depth(0), Min(0), MinOccurrence(this) {}; void setParent(ETOccurrence *n) { + assert(n != this && "Trying to set parent to ourselves"); Parent = n; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits