From: Chris Lattner Date: Fri, 28 May 2004 05:40:19 +0000 (+0000) Subject: Don't use size() when you mean empty() X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c3fcaea8ac146984a0f4f5986764cb264d91d221;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b7d71812400..64659442722 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -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); }