mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[TableGen] Use 'isa' to check if something is an UnsetInit rather than getting the UnsetInit singleton and comparing pointers. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14c78fb9b1
commit
06b2485912
@ -1351,7 +1351,7 @@ public:
|
||||
|
||||
/// Return true if the named field is unset.
|
||||
bool isValueUnset(StringRef FieldName) const {
|
||||
return getValueInit(FieldName) == UnsetInit::get();
|
||||
return isa<UnsetInit>(getValueInit(FieldName));
|
||||
}
|
||||
|
||||
/// getValueAsString - This method looks up the specified field and returns
|
||||
|
Loading…
Reference in New Issue
Block a user