forked from OSchip/llvm-project
fix a bug in my previous patch, a classic =/== bug.
llvm-svn: 50483
This commit is contained in:
parent
68988d13f6
commit
78769f0223
|
@ -140,7 +140,7 @@ unsigned Value::getNameLen() const {
|
|||
/// nul terminated string.
|
||||
bool Value::isName(const char *N) const {
|
||||
unsigned InLen = strlen(N);
|
||||
return InLen = getNameLen() && memcmp(getNameStart(), N, InLen) == 0;
|
||||
return InLen == getNameLen() && memcmp(getNameStart(), N, InLen) == 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue