From 06b24859123605d00ddeb7bd8c1da9992be75021 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 7 Jun 2015 06:01:13 +0000 Subject: [PATCH] [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 --- include/llvm/TableGen/Record.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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