summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-11 00:11:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-11 00:11:19 +0000
commita8272596bc8941708dbaee2ebbd24cbbbc66745e (patch)
treee0ba3cbc7c3b4de52bdaa60a5ee06d88ba583963
parent4493c7e550de4be3c23d9a85d08fd156359efe0c (diff)
downloadbcm5719-llvm-a8272596bc8941708dbaee2ebbd24cbbbc66745e.tar.gz
bcm5719-llvm-a8272596bc8941708dbaee2ebbd24cbbbc66745e.zip
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... llvm-svn: 110757
-rw-r--r--llvm/tools/lto/LTOModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/lto/LTOModule.cpp b/llvm/tools/lto/LTOModule.cpp
index e329d508c88..c7cd585d03d 100644
--- a/llvm/tools/lto/LTOModule.cpp
+++ b/llvm/tools/lto/LTOModule.cpp
@@ -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
OpenPOWER on IntegriCloud