summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-06-06 01:34:00 +0000
committerCraig Topper <craig.topper@gmail.com>2015-06-06 01:34:00 +0000
commit5a2dfdcd20c0f8ec3eda0273c974471ae5e04715 (patch)
tree3e5b723d0dcff17258e6ac0411f18d64d79013a8 /llvm/lib/TableGen
parent5904beb666237bb13f7699f6db817f35cd6822ce (diff)
downloadbcm5719-llvm-5a2dfdcd20c0f8ec3eda0273c974471ae5e04715.tar.gz
bcm5719-llvm-5a2dfdcd20c0f8ec3eda0273c974471ae5e04715.zip
[TableGen] Remove unnecessary temporary. NFC
llvm-svn: 239208
Diffstat (limited to 'llvm/lib/TableGen')
-rw-r--r--llvm/lib/TableGen/Record.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index 93922c7c99f..4190022d01b 100644
--- a/llvm/lib/TableGen/Record.cpp
+++ b/llvm/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<const TypedInit>(Name);
- RecTy *Type = TypedName->getType();
- if (!isa<StringRecTy>(Type))
+ if (!isa<StringRecTy>(TypedName->getType()))
PrintFatalError(getLoc(), "Record name is not a string!");
}
OpenPOWER on IntegriCloud