Skip to content
Snippets Groups Projects
Commit a029191d authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[irgen] Fix decl context of global ghost declarations

parent 1c768695
No related branches found
No related tags found
No related merge requests found
......@@ -287,6 +287,7 @@ void ACSLComment::parseGhostGlobal(
while (!parser->ParseTopLevelDecl(Decl)) {
#endif
clang::DeclGroupRef DGR = Decl.get();
for (auto decl: DGR) decl->setDeclContext(clangContext);
consumer->HandleTopLevelDecl(DGR);
}
cpp.enableIncrementalProcessing(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment