From: Craig Topper Date: Sat, 6 Jun 2015 01:34:00 +0000 (+0000) Subject: [TableGen] Remove unnecessary temporary. NFC X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=8e29f136cf34d8cd8f44f449cd03e36480047a87 [TableGen] Remove unnecessary temporary. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239208 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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!"); }