From c3fcaea8ac146984a0f4f5986764cb264d91d221 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 May 2004 05:40:19 +0000 Subject: 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 --- lib/VMCore/Type.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/VMCore/Type.cpp') diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b7d7181..6465944 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); } -- cgit v1.1