projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05ccd70
)
add an assert, patch by Daniel Berlin
author
Chris Lattner
<sabre@nondot.org>
Sun, 15 Jan 2006 21:46:23 +0000
(21:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 15 Jan 2006 21:46:23 +0000
(21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25343
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/ET-Forest.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/ET-Forest.h
b/include/llvm/Analysis/ET-Forest.h
index 02b0f76234267a5b5ce7c98d6528aea47659f22d..5607d52ec54b13a99eb4d7b789c87eab90dac4a3 100644
(file)
--- 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;
}