From: Chris Lattner Date: Sun, 15 Jan 2006 21:46:23 +0000 (+0000) Subject: add an assert, patch by Daniel Berlin X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d2da286e991963fcc4b9bbbed4c2e3f5c7ebddab;p=oota-llvm.git add an assert, patch by Daniel Berlin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25343 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/ET-Forest.h b/include/llvm/Analysis/ET-Forest.h index 02b0f762342..5607d52ec54 100644 --- a/include/llvm/Analysis/ET-Forest.h +++ b/include/llvm/Analysis/ET-Forest.h @@ -50,6 +50,7 @@ public: Depth(0), Min(0), MinOccurrence(this) {}; void setParent(ETOccurrence *n) { + assert(n != this && "Trying to set parent to ourselves"); Parent = n; }