From 12c846f5d2adc88e3aa43500128475c9ba2e9228 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 5 Jun 2008 07:24:08 +0000 Subject: Remove unused parameter. Some clients might use -Werror when compiling and cause drama. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51980 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DerivedTypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/DerivedTypes.h') diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 4537400..04a73fe 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -292,7 +292,7 @@ public: inline const Type *getElementType() const { return ContainedTys[0]; } virtual bool indexValid(const Value *V) const; - virtual bool indexValid(unsigned Idx) const { + virtual bool indexValid(unsigned) const { return true; } @@ -302,7 +302,7 @@ public: virtual const Type *getTypeAtIndex(const Value *) const { return ContainedTys[0]; } - virtual const Type *getTypeAtIndex(unsigned Idx) const { + virtual const Type *getTypeAtIndex(unsigned) const { return ContainedTys[0]; } -- cgit v1.1