mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user