[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 28 00:44:01 PDT 2004
Changes in directory llvm/lib/VMCore:
Type.cpp updated: 1.99 -> 1.100
---
Log message:
Don't use size() when you mean empty()
---
Diffs of the changes: (+1 -2)
Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.99 llvm/lib/VMCore/Type.cpp:1.100
--- llvm/lib/VMCore/Type.cpp:1.99 Sun Apr 4 20:30:19 2004
+++ llvm/lib/VMCore/Type.cpp Fri May 28 00:40:19 2004
@@ -54,8 +54,7 @@
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);
}
More information about the llvm-commits
mailing list