HomePhabricator

[Concepts] Fix incorrect DeclContext for transformed RequiresExprBodyDecl

Authored by saar.raz on Mar 10 2020, 2:17 PM.

Description

[Concepts] Fix incorrect DeclContext for transformed RequiresExprBodyDecl

We would assign the incorrect DeclContext when transforming the RequiresExprBodyDecl, causing incorrect
handling of 'this' inside RequiresExprBodyDecls (bug #45162).

Assign the current context as the DeclContext of the transformed decl.

Details

Committed
saar.razMar 10 2020, 2:17 PM
Parents
rG40568fec7e3e: [CodeGen] Emit destructor calls to destruct compound literals
Branches
Unknown
Tags
Unknown