mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +00:00
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
This commit is contained in:
parent
a5dcc4f7b2
commit
c3fcaea8ac
@ -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…
x
Reference in New Issue
Block a user