From: Craig Topper Date: Sun, 7 Jun 2015 06:01:13 +0000 (+0000) Subject: [TableGen] Use 'isa' to check if something is an UnsetInit rather than getting the... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=06b24859123605d00ddeb7bd8c1da9992be75021;p=oota-llvm.git [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 --- diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index 770eb3b8e2e..9e06b86b15f 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -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(getValueInit(FieldName)); } /// getValueAsString - This method looks up the specified field and returns