[llvm] r239208 - [TableGen] Remove unnecessary temporary. NFC

Craig Topper craig.topper at gmail.com
Fri Jun 5 18:34:00 PDT 2015


Author: ctopper
Date: Fri Jun  5 20:34:00 2015
New Revision: 239208

URL: http://llvm.org/viewvc/llvm-project?rev=239208&view=rev
Log:
[TableGen] Remove unnecessary temporary. NFC

Modified:
    llvm/trunk/lib/TableGen/Record.cpp

Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=239208&r1=239207&r2=239208&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Fri Jun  5 20:34:00 2015
@@ -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!");
 }
 





More information about the llvm-commits mailing list