aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/BasicBlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 29caa0a..fdd3ea8 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -29,7 +29,7 @@ template<> struct ilist_traits<Instruction>
Instruction *createSentinel() const {
return const_cast<Instruction*>(static_cast<const Instruction*>(&Sentinel));
}
- static void destroySentinel(Instruction *I) { }
+ static void destroySentinel(Instruction *I) { I = I; }
static iplist<Instruction> &getList(BasicBlock *BB);
static ValueSymbolTable *getSymTab(BasicBlock *ItemParent);
static int getListOffset();