Skip to content

Commit

Permalink
DITH fix attempt for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbs96 committed Oct 24, 2024
1 parent 417e584 commit e5bc4c8
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions lib/PhasarLLVM/TypeHierarchy/DIBasedTypeHierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,12 @@ DIBasedTypeHierarchy::DIBasedTypeHierarchy(const LLVMProjectIRDB &IRDB) {
if (!llvm::is_contained(DwarfTags, Composite->getTag())) {
continue;
}
if (TypeToVertex.try_emplace(Composite, VertexTypes.size()).second) {
VertexTypes.push_back(Composite);
NameToType.try_emplace(getCompositeTypeName(Composite), Composite);

if (getCompositeTypeName(Composite).empty()) {
llvm::errs() << "ERROR: Composite Type is empty: " << *Composite
<< '\n';
IRDB.emitPreprocessedIR(llvm::errs());
llvm::errs().flush();
}
auto Name = getCompositeTypeName(Composite);
if (!Name.empty() &&
TypeToVertex.try_emplace(Composite, VertexTypes.size()).second) {

assert(!getCompositeTypeName(Composite).empty());
VertexTypes.push_back(Composite);
NameToType.try_emplace(Name, Composite);
}
}
}
Expand Down

0 comments on commit e5bc4c8

Please sign in to comment.