diff options
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r-- | include/llvm/BasicBlock.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index ed9794207a..dc3ef1bccc 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -40,8 +40,9 @@ template <class Ptr, class USE_iterator> class PredIterator; template<> struct ilist_traits<Instruction> : public SymbolTableListTraits<Instruction, BasicBlock, Function> { - // createNode is used to create a node that marks the end of the list... - static Instruction *createNode(); + // createSentinal is used to create a node that marks the end of the list... + static Instruction *createSentinal(); + static void destroySentinal(Instruction *I) { delete I; } static iplist<Instruction> &getList(BasicBlock *BB); }; |