[TableGen] Remove unnecessary temporary. NFC
[oota-llvm.git] / 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!");
 }