diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-25 06:16:52 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-25 06:16:52 +0000 |
commit | 89756ea10980cac3b8017afa41608957ad1bfc81 (patch) | |
tree | b11a8dfd01fcc195191816574b559e20ff1f3d3d | |
parent | 83949fcf7c3e417a73f2bb3e6c78a74274407099 (diff) |
Use name.empty() instead of testing against equality with the empty
string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15191 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index 79521f6845..e41c7fd136 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -37,7 +37,7 @@ Value::Value(const Type *ty, unsigned scid, const std::string &name) 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() { |