summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-02 20:46:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-02 20:46:16 +0000
commit9ec4849ff6cd771f53a1340aa6383702b7a6bb98 (patch)
tree7be9049158a88ba052264c90056957baa4f51e8f /utils/TableGen/Record.cpp
parent3ed469ccd7b028a030b550d84b7336d146f5d8fa (diff)
downloadllvm-9ec4849ff6cd771f53a1340aa6383702b7a6bb98.tar.gz
llvm-9ec4849ff6cd771f53a1340aa6383702b7a6bb98.tar.bz2
llvm-9ec4849ff6cd771f53a1340aa6383702b7a6bb98.tar.xz
For PR786:
Remove unused variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.cpp')
-rw-r--r--utils/TableGen/Record.cpp2
1 files changed, 1 insertions, 1 deletions
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<RecordRecTy*>(getType()))
+ if (dynamic_cast<RecordRecTy*>(getType()))
if (const RecordVal *RV = R.getValue(VarName)) {
Init *TheInit = RV->getValue();
assert(TheInit != this && "Infinite loop detected!");