mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
Don't use size() when you mean empty()
llvm-svn: 13876
This commit is contained in:
parent
37c8081a07
commit
9bf4cbeb4b
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user