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
This commit is contained in:
		
							parent
							
								
									4493c7e550
								
							
						
					
					
						commit
						a8272596bc
					
				| 
						 | 
					@ -356,7 +356,7 @@ void LTOModule::addDefinedSymbol(GlobalValue *def, Mangler &mangler,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void LTOModule::addAsmGlobalSymbol(const char *name) {
 | 
					void LTOModule::addAsmGlobalSymbol(const char *name) {
 | 
				
			||||||
  // only add new define if not already defined
 | 
					  // only add new define if not already defined
 | 
				
			||||||
  if (_defines.count(name) == 0)
 | 
					  if (_defines.count(name))
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // string is owned by _defines
 | 
					  // string is owned by _defines
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue