diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b7d71812400..64659442722 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); }