[TableGen] Remove unnecessary temporary. NFC
authorCraig Topper <craig.topper@gmail.com>
Sat, 6 Jun 2015 01:34:00 +0000 (01:34 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 6 Jun 2015 01:34:00 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239208 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/Record.cpp

index 93922c7c99f2aaf7010b29d5f1b60d782bb81616..4190022d01bbb410b29db30fbaeaeed67288e92d 100644 (file)
@@ -1569,8 +1569,7 @@ void Record::init() {
 void Record::checkName() {
   // Ensure the record name has string type.
   const TypedInit *TypedName = cast<const TypedInit>(Name);
-  RecTy *Type = TypedName->getType();
-  if (!isa<StringRecTy>(Type))
+  if (!isa<StringRecTy>(TypedName->getType()))
     PrintFatalError(getLoc(), "Record name is not a string!");
 }