projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33d0763
)
[TableGen] Remove unnecessary temporary. NFC
author
Craig Topper
<craig.topper@gmail.com>
Sat, 6 Jun 2015 01:34:00 +0000
(
01:34
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sat, 6 Jun 2015 01:34:00 +0000
(
01:34
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239208
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/Record.cpp
b/lib/TableGen/Record.cpp
index 93922c7c99f2aaf7010b29d5f1b60d782bb81616..4190022d01bbb410b29db30fbaeaeed67288e92d 100644
(file)
--- 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<const TypedInit>(Name);
- RecTy *Type = TypedName->getType();
- if (!isa<StringRecTy>(Type))
+ if (!isa<StringRecTy>(TypedName->getType()))
PrintFatalError(getLoc(), "Record name is not a string!");
}