fix a bug in my previous patch, a classic =/== bug.

llvm-svn: 50483
This commit is contained in:
Chris Lattner 2008-04-30 15:27:09 +00:00
parent 68988d13f6
commit 78769f0223
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}