Skip to content

Commit

Permalink
Ignore struct decls without type info
Browse files Browse the repository at this point in the history
  • Loading branch information
frabert committed Jan 26, 2023
1 parent 03ce660 commit 4c5c45e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/AST/StructFieldRenamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ StructFieldRenamer::StructFieldRenamer(DecompilationContext &dec_ctx,

bool StructFieldRenamer::VisitRecordDecl(clang::RecordDecl *decl) {
auto type{decls[decl]};
CHECK(type) << "Type information not present for declaration";
if (!type) {
return !Stopped();
}

auto di{types[type]};
if (!di) {
Expand Down

0 comments on commit 4c5c45e

Please sign in to comment.