mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[TableGen] Remove unnecessary temporary. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33d0763bd1
commit
8e29f136cf
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user