From 8e29f136cf34d8cd8f44f449cd03e36480047a87 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 6 Jun 2015 01:34:00 +0000 Subject: [PATCH] [TableGen] Remove unnecessary temporary. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239208 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/TableGen/Record.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 93922c7c99f..4190022d01b 100644 --- a/lib/TableGen/Record.cpp +++ b/lib/TableGen/Record.cpp @@ -1569,8 +1569,7 @@ void Record::init() { void Record::checkName() { // Ensure the record name has string type. const TypedInit *TypedName = cast(Name); - RecTy *Type = TypedName->getType(); - if (!isa(Type)) + if (!isa(TypedName->getType())) PrintFatalError(getLoc(), "Record name is not a string!"); } -- 2.34.1