llvm.org GIT mirror llvm / 06b2485
[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 Craig Topper 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
13501350
13511351 /// Return true if the named field is unset.
13521352 bool isValueUnset(StringRef FieldName) const {
1353 return getValueInit(FieldName) == UnsetInit::get();
1353 return isa(getValueInit(FieldName));
13541354 }
13551355
13561356 /// getValueAsString - This method looks up the specified field and returns