IR: Remove MDString logic for Value::hasName()
[oota-llvm.git] / include / llvm / IR / Value.h
index efe0cca7bb45fa237ccaf66fb1190194a417e570..6cd38540f25bb3edef02b04683b8967db9d5510b 100644 (file)
@@ -226,7 +226,7 @@ public:
   LLVMContext &getContext() const;
 
   // \brief All values can potentially be named.
-  bool hasName() const { return Name != nullptr && SubclassID != MDStringVal; }
+  bool hasName() const { return Name != nullptr; }
   ValueName *getValueName() const { return Name; }
   void setValueName(ValueName *VN) { Name = VN; }