================
@@ -318,6 +318,9 @@ namespace {
if (Diags.hasUnrecoverableErrorOccurred())
return;
+ if (RD->shouldEmitInExternalSource())
----------------
ChuanqiXu9 wrote:
Thanks. It makes sense.
https://github.com/llvm/llvm-project/pull/75912