We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f49c7 commit a96772eCopy full SHA for a96772e
clang/lib/3C/DeclRewriter.cpp
@@ -538,7 +538,7 @@ void DeclRewriter::rewriteFunctionDecl(FunctionDeclReplacement *N) {
538
/*static*/ std::set<Decl *> DeclRewriter::InlineVarDecls;
539
void DeclRewriter::detectInlineStruct(Decl *D, SourceManager &SM) {
540
RecordDecl *RD = dyn_cast<RecordDecl>(D);
541
- if (RD != nullptr &&
+ if (RD != nullptr && RD->isCompleteDefinition() &&
542
// With -fms-extensions (default on Windows), Clang injects an implicit
543
// `struct _GUID` with an invalid location, which would cause an assertion
544
// failure in SM.isPointWithin below.
0 commit comments