summaryrefslogtreecommitdiff
path: root/tools
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
commitf4452c37d03ab6cdcd2b23cb15b921c0bba591a7 (patch)
treebdcd50dd41d66085162e77922be131d7c7e0b126 /tools
parent8d0843dcffad90ba200663c5b3aca3ce1e362e96 (diff)
downloadllvm-f4452c37d03ab6cdcd2b23cb15b921c0bba591a7.tar.gz
llvm-f4452c37d03ab6cdcd2b23cb15b921c0bba591a7.tar.bz2
llvm-f4452c37d03ab6cdcd2b23cb15b921c0bba591a7.tar.xz
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
Diffstat (limited to 'tools')
-rw-r--r--tools/lto/LTOModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index e329d508c8..c7cd585d03 100644
--- a/tools/lto/LTOModule.cpp
+++ b/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