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 9af2fe9 commit 500d870Copy full SHA for 500d870
clang/lib/3C/DeclRewriter.cpp
@@ -535,7 +535,7 @@ void DeclRewriter::rewriteFunctionDecl(FunctionDeclReplacement *N) {
535
/*static*/ std::set<Decl *> DeclRewriter::InlineVarDecls;
536
void DeclRewriter::detectInlineStruct(Decl *D, SourceManager &SM) {
537
RecordDecl *RD = dyn_cast<RecordDecl>(D);
538
- if (RD != nullptr &&
+ if (RD != nullptr && RD->isCompleteDefinition() &&
539
// With -fms-extensions (default on Windows), Clang injects an implicit
540
// `struct _GUID` with an invalid location, which would cause an assertion
541
// failure in SM.isPointWithin below.
0 commit comments