mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +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:
parent
d2ef523673
commit
5c5f1095ec
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user