diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-15 21:46:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-15 21:46:23 +0000 |
commit | d2da286e991963fcc4b9bbbed4c2e3f5c7ebddab (patch) | |
tree | c3633dba8b74eca0ac9147f520e62c1049be9371 /include/llvm/Analysis | |
parent | 05ccd7039610c72b7fceb85a0c4b644aef2e64eb (diff) | |
download | external_llvm-d2da286e991963fcc4b9bbbed4c2e3f5c7ebddab.zip external_llvm-d2da286e991963fcc4b9bbbed4c2e3f5c7ebddab.tar.gz external_llvm-d2da286e991963fcc4b9bbbed4c2e3f5c7ebddab.tar.bz2 |
add an assert, patch by Daniel Berlin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/ET-Forest.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ET-Forest.h b/include/llvm/Analysis/ET-Forest.h index 02b0f76..5607d52 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; } |