diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index 79521f6845a..e41c7fd1366 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -37,7 +37,7 @@ Value::Value(const Type *ty, unsigned scid, const std::string &name) isa(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() {