HomePhabricator

[Sema] Prevent binding incompatible addr space ref to temporaries

Authored by Anastasia on Jun 5 2019, 7:03 AM.

Description

[Sema] Prevent binding incompatible addr space ref to temporaries

References to arbitrary address spaces can't always be bound to
temporaries. This change extends the reference binding logic to
check that the address space of a temporary can be implicitly
converted to the address space in a reference when temporary
materialization is performed.

Differential Revision: https://reviews.llvm.org/D61318

llvm-svn: 362604

Details