Skip to content

Commit 91e0e11

Browse files
mizvekovalandefreitas
authored andcommitted
fix: crash on unimplemented when populating overloads destructor entry
I am not sure why this is not seen in CI presently, but I can reproduce it when building mrdocs from the llvm version bundled in homebrew (currently 20.1.7).
1 parent 5aa5691 commit 91e0e11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/Metadata/Finalizers/Javadoc/Overloads.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ populateOverloadsFromClass(OverloadsInfo& I)
7676
return true;
7777
}
7878
case FunctionClass::Destructor:
79+
{
80+
I.javadoc->brief = "Destructors";
81+
return true;
82+
}
7983
default:
8084
MRDOCS_UNREACHABLE();
8185
}

0 commit comments

Comments
 (0)