mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
lto: Fix an inverted conditional which prevented the addition of symbols scraped
from inline assembly, except in cases where they had already been seen (in which case they would get added twice). - I can't see how this ever worked... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110757 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d0843dcff
commit
f4452c37d0
@ -356,7 +356,7 @@ void LTOModule::addDefinedSymbol(GlobalValue *def, Mangler &mangler,
|
||||
|
||||
void LTOModule::addAsmGlobalSymbol(const char *name) {
|
||||
// only add new define if not already defined
|
||||
if (_defines.count(name) == 0)
|
||||
if (_defines.count(name))
|
||||
return;
|
||||
|
||||
// string is owned by _defines
|
||||
|
Loading…
Reference in New Issue
Block a user