[llvm-commits] [llvm] r110757 - /llvm/trunk/tools/lto/LTOModule.cpp

Daniel Dunbar daniel at zuster.org
Tue Aug 10 17:11:19 PDT 2010


Author: ddunbar
Date: Tue Aug 10 19:11:19 2010
New Revision: 110757

URL: http://llvm.org/viewvc/llvm-project?rev=110757&view=rev
Log:
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...

Modified:
    llvm/trunk/tools/lto/LTOModule.cpp

Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=110757&r1=110756&r2=110757&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Tue Aug 10 19:11:19 2010
@@ -356,7 +356,7 @@
 
 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





More information about the llvm-commits mailing list