diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-28 05:40:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-28 05:40:19 +0000 |
commit | 1bb966181870ccaeeffa9fde947affe63ddf3591 (patch) | |
tree | dab8d407bb1047cd328e742b5a2656e971ffe5bb /llvm/lib | |
parent | 49cdc6b5648712c5dbd7f54ee07ce89941878804 (diff) | |
download | bcm5719-llvm-1bb966181870ccaeeffa9fde947affe63ddf3591.tar.gz bcm5719-llvm-1bb966181870ccaeeffa9fde947affe63ddf3591.zip |
Don't use size() when you mean empty()
llvm-svn: 13876
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/Type.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index b7d71812400..64659442722 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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); } |