diff options
author | Anastasia Stulova <anastasia.stulova@arm.com> | 2021-02-04 13:46:11 +0000 |
---|---|---|
committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2021-02-04 13:51:53 +0000 |
commit | 0c65993be186640463ac90415113474d35889dbb (patch) | |
tree | 2d6301b40016686428f4620f75ba07ed9a2f323e /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 09c18a6606e1437234fc1ac9f75b32c168a2d05b (diff) | |
download | llvm-0c65993be186640463ac90415113474d35889dbb.zip llvm-0c65993be186640463ac90415113474d35889dbb.tar.gz llvm-0c65993be186640463ac90415113474d35889dbb.tar.bz2 |
[OpenCL] Fix default address space in template argument deduction.
When deducing a reference type for forwarding references prevent
adding default address space of a template argument if it is given.
This got reported in PR48896 because in OpenCL all parameters are
in private address space and therefore when we initialize a
forwarding reference with a parameter we should just inherit the
address space from it i.e. keep __private instead of __generic.
Tags: #clang
Differential Revision: https://reviews.llvm.org/D95624
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions