From: Chris Lattner Date: Wed, 30 Apr 2008 15:27:09 +0000 (+0000) Subject: fix a bug in my previous patch, a classic =/== bug. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5c5f1095ec4587865fc2b25534fcd1ed14ad8b82;p=oota-llvm.git fix a bug in my previous patch, a classic =/== bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50483 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index cf696fe44fe..e55e558e0f9 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -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; }