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