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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-05-28 05:40:19 +00:00
parent a5dcc4f7b2
commit c3fcaea8ac

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);
}