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.

(cherry picked from commit 9769e1ee9acc33638449b50ac394b5ee2d4efb60)

Details

Committed
hansMar 19 2020, 2:18 AM
Parents
rG5401d393f88b: ../llvm/utils/update_test_checks.py --opt-binary bin/opt ..
Branches
Unknown
Tags
Unknown