[llvm-commits] [llvm] r50483 - /llvm/trunk/lib/VMCore/Value.cpp
Chris Lattner
sabre at nondot.org
Wed Apr 30 08:27:09 PDT 2008
Author: lattner
Date: Wed Apr 30 10:27:09 2008
New Revision: 50483
URL: http://llvm.org/viewvc/llvm-project?rev=50483&view=rev
Log:
fix a bug in my previous patch, a classic =/== bug.
Modified:
llvm/trunk/lib/VMCore/Value.cpp
Modified: llvm/trunk/lib/VMCore/Value.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Value.cpp?rev=50483&r1=50482&r2=50483&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Value.cpp (original)
+++ llvm/trunk/lib/VMCore/Value.cpp Wed Apr 30 10:27:09 2008
@@ -140,7 +140,7 @@
/// 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;
}
More information about the llvm-commits
mailing list