Avoid unused parameter warning.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 28 Feb 2009 01:10:24 +0000 (01:10 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 28 Feb 2009 01:10:24 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65670 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/BasicBlock.h

index 29caa0ab192e213c81fa2d65344f23e46704de4f..fdd3ea87d6f222681c7f61a86ba81d35238f2710 100644 (file)
@@ -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();