Don't use size() when you mean empty()

llvm-svn: 13876
This commit is contained in:
Chris Lattner 2004-05-28 05:40:19 +00:00
parent 37c8081a07
commit 9bf4cbeb4b

View File

@ -54,8 +54,7 @@ Type::Type(const std::string &name, PrimitiveID id)
void Type::setName(const std::string &Name, SymbolTable *ST) {
assert(ST && "Type::setName - Must provide symbol table argument!");
if (Name.size()) ST->insert(Name, this);
if (!Name.empty()) ST->insert(Name, this);
}