You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
d7363397c6
TypeSystemClang::CreateTypedef was creating a typedef in the right DeclContext, but it was not actually adding it as a child of the context. The resulting inconsistent state meant that we would be unable to reference the typedef from an expression directly, but we could use them if they end up being pulled in by some previous subexpression (because the ASTImporter will set up the correct links in the expression ast). This patch adds the typedef to the decl context it is created in. Differential Revision: https://reviews.llvm.org/D86140