forked from OSchip/llvm-project
				
			Fix return value of DWARFUnit::ExtractDIEsIfNeeded()
This is a leftover regression from: https://reviews.llvm.org/D46810 llvm-svn: 333517
This commit is contained in:
		
							parent
							
								
									ad6142d57b
								
							
						
					
					
						commit
						f426fc7000
					
				| 
						 | 
					@ -192,13 +192,12 @@ bool DWARFUnit::ExtractDIEsIfNeeded() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ExtractDIEsEndCheck(offset);
 | 
					  ExtractDIEsEndCheck(offset);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!m_dwo_symbol_file)
 | 
					  if (m_dwo_symbol_file) {
 | 
				
			||||||
    return m_die_array.size();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    DWARFUnit *dwo_cu = m_dwo_symbol_file->GetCompileUnit();
 | 
					    DWARFUnit *dwo_cu = m_dwo_symbol_file->GetCompileUnit();
 | 
				
			||||||
  size_t dwo_die_count = dwo_cu->ExtractDIEsIfNeeded();
 | 
					    dwo_cu->ExtractDIEsIfNeeded();
 | 
				
			||||||
  return m_die_array.size() + dwo_die_count -
 | 
					  }
 | 
				
			||||||
         1; // We have 2 CU die, but we want to count it only as one
 | 
					
 | 
				
			||||||
 | 
					  return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//--------------------------------------------------------------------------
 | 
					//--------------------------------------------------------------------------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue