diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-30 15:27:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-30 15:27:09 +0000 |
commit | 78769f022389f224888376a210c8573100efa334 (patch) | |
tree | 0d936d7c6be0532b1c1ba391f0912b8f4ca93cdd /llvm/lib/VMCore/Value.cpp | |
parent | 68988d13f62340e2ae6cb3aad6eb76041086098b (diff) | |
download | bcm5719-llvm-78769f022389f224888376a210c8573100efa334.tar.gz bcm5719-llvm-78769f022389f224888376a210c8573100efa334.zip |
fix a bug in my previous patch, a classic =/== bug.
llvm-svn: 50483
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; } |