[llvm-commits] CVS: llvm/lib/VMCore/Value.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Jul 24 23:17:02 PDT 2004
Changes in directory llvm/lib/VMCore:
Value.cpp updated: 1.48 -> 1.49
---
Log message:
Use name.empty() instead of testing against equality with the empty
string.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/VMCore/Value.cpp
diff -u llvm/lib/VMCore/Value.cpp:1.48 llvm/lib/VMCore/Value.cpp:1.49
--- llvm/lib/VMCore/Value.cpp:1.48 Sun Jul 25 01:07:15 2004
+++ llvm/lib/VMCore/Value.cpp Sun Jul 25 01:16:52 2004
@@ -37,7 +37,7 @@
isa<OpaqueType>(ty)) &&
"Cannot create non-first-class values except for constants!");
if (ty == Type::VoidTy)
- assert(name == "" && "Cannot have named void values!");
+ assert(name.empty() && "Cannot have named void values!");
}
Value::~Value() {
More information about the llvm-commits
mailing list