[all-commits] [llvm/llvm-project] 6050c1: [OpenCL] Defer addr space deduction for dependent ...

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Mon Jul 13 03:46:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6050c156ab4f13a3c54ca6ec297a72ece95966d7
      https://github.com/llvm/llvm-project/commit/6050c156ab4f13a3c54ca6ec297a72ece95966d7
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/test/SemaOpenCLCXX/address-space-deduction.cl

  Log Message:
  -----------
  [OpenCL] Defer addr space deduction for dependent type.

This patch removes deduction of address spaces in parsing
for types that depend on template parameter even if an
address space is already known. Deducing it early interferes
with template instantiation/specialization logic that uses
source address space where address space is not present.

Address space deduction for templates is therefore fully
moved to the template instantiation/specialization phase.

Patch by Ole Strohm (olestrohm)!

Tags: #clang

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




More information about the All-commits mailing list