diff options
Diffstat (limited to 'include/llvm/Analysis/DataStructure')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 8dc39fb73c..2d707153e1 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -369,7 +369,8 @@ struct ilist_traits<DSNode> { static void setPrev(DSNode *N, DSNode *Prev) { N->Prev = Prev; } static void setNext(DSNode *N, DSNode *Next) { N->Next = Next; } - static DSNode *createNode() { return new DSNode(0,0); } + static DSNode *createSentinal() { return new DSNode(0,0); } + static void destroySentinal(DSNode *N) { delete N; } //static DSNode *createNode(const DSNode &V) { return new DSNode(V); } |