From 9ec4849ff6cd771f53a1340aa6383702b7a6bb98 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 2 Nov 2006 20:46:16 +0000 Subject: For PR786: Remove unused variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31381 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/Record.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/TableGen/Record.cpp') diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp index 254ec78423..c1ef4ed82f 100644 --- a/utils/TableGen/Record.cpp +++ b/utils/TableGen/Record.cpp @@ -498,7 +498,7 @@ RecTy *VarInit::getFieldType(const std::string &FieldName) const { } Init *VarInit::getFieldInit(Record &R, const std::string &FieldName) const { - if (RecordRecTy *RTy = dynamic_cast(getType())) + if (dynamic_cast(getType())) if (const RecordVal *RV = R.getValue(VarName)) { Init *TheInit = RV->getValue(); assert(TheInit != this && "Infinite loop detected!"); -- cgit v1.2.3