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 2878425 commit b183451Copy full SHA for b183451
clang/lib/3C/DeclRewriter.cpp
@@ -557,7 +557,7 @@ void DeclRewriter::rewriteFunctionDecl(FunctionDeclReplacement *N) {
557
/*static*/ std::set<Decl *> DeclRewriter::InlineVarDecls;
558
void DeclRewriter::detectInlineStruct(Decl *D, SourceManager &SM) {
559
RecordDecl *RD = dyn_cast<RecordDecl>(D);
560
- if (RD != nullptr &&
+ if (RD != nullptr && RD->isCompleteDefinition() &&
561
// With -fms-extensions (default on Windows), Clang injects an implicit
562
// `struct _GUID` with an invalid location, which would cause an assertion
563
// failure in SM.isPointWithin below.
0 commit comments