When we resolve a forward declaration type, be sure to put it into the m_die_to_type map so we don't assert later when someone tries to resolve the type.
llvm-svn: 119910
This commit is contained in:
		
							parent
							
								
									3dc6455ff0
								
							
						
					
					
						commit
						facfd06c4f
					
				| 
						 | 
					@ -3035,7 +3035,13 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu,
 | 
				
			||||||
                                type_sp = m_debug_map_symfile->FindDefinitionTypeForDIE (dwarf_cu, die, type_name_const_str);
 | 
					                                type_sp = m_debug_map_symfile->FindDefinitionTypeForDIE (dwarf_cu, die, type_name_const_str);
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        if (type_sp)
 | 
					                        if (type_sp)
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            // We found a real definition for this type elsewhere
 | 
				
			||||||
 | 
					                            // so lets use it and cache the fact that we found
 | 
				
			||||||
 | 
					                            // a complete type for this die
 | 
				
			||||||
 | 
					                            m_die_to_type[die] = type_sp.get();
 | 
				
			||||||
                            return type_sp;
 | 
					                            return type_sp;
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    assert (tag_decl_kind != -1);
 | 
					                    assert (tag_decl_kind != -1);
 | 
				
			||||||
                    bool clang_type_was_created = false;
 | 
					                    bool clang_type_was_created = false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue