projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83949fc
)
Use name.empty() instead of testing against equality with the empty
author
Alkis Evlogimenos
<alkis@evlogimenos.com>
Sun, 25 Jul 2004 06:16:52 +0000
(06:16 +0000)
committer
Alkis Evlogimenos
<alkis@evlogimenos.com>
Sun, 25 Jul 2004 06:16:52 +0000
(06:16 +0000)
string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15191
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Value.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Value.cpp
b/lib/VMCore/Value.cpp
index 79521f6845a52bfaaf20342a0519eef2f7c03570..e41c7fd1366f5b0ffccefe12664681f4cf5fa60d 100644
(file)
--- 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() {