diff options
Diffstat (limited to 'llvm/lib/VMCore/Value.cpp')
-rw-r--r-- | llvm/lib/VMCore/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index cf696fe44fe..e55e558e0f9 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/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; } |