Use name.empty() instead of testing against equality with the empty
string.
llvm-svn: 15191
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp
index 79521f6..e41c7fd1 100644
--- a/llvm/lib/VMCore/Value.cpp
+++ b/llvm/lib/VMCore/Value.cpp
@@ -37,7 +37,7 @@
isa<OpaqueType>(ty)) &&
"Cannot create non-first-class values except for constants!");
if (ty == Type::VoidTy)
- assert(name == "" && "Cannot have named void values!");
+ assert(name.empty() && "Cannot have named void values!");
}
Value::~Value() {