aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Type.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-28 05:40:19 +0000
committerChris Lattner <sabre@nondot.org>2004-05-28 05:40:19 +0000
commitc3fcaea8ac146984a0f4f5986764cb264d91d221 (patch)
treea79d876ecc994c1e30683193a599740b939e65c4 /lib/VMCore/Type.cpp
parenta5dcc4f7b2a65afbeec9008733f47e6beee24bde (diff)
downloadexternal_llvm-c3fcaea8ac146984a0f4f5986764cb264d91d221.zip
external_llvm-c3fcaea8ac146984a0f4f5986764cb264d91d221.tar.gz
external_llvm-c3fcaea8ac146984a0f4f5986764cb264d91d221.tar.bz2
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
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r--lib/VMCore/Type.cpp3
1 files changed, 1 insertions, 2 deletions
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);
}