[all-commits] [llvm/llvm-project] 623649: [OpenCL] Fix address space for implicit conversion...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Mon Dec 2 06:20:52 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 62364965619bd7e8847418b21ec327a78bd1624c
      https://github.com/llvm/llvm-project/commit/62364965619bd7e8847418b21ec327a78bd1624c
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2019-12-02 (Mon, 02 Dec 2019)

  Changed paths:
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/CodeGenOpenCLCXX/addrspace-derived-base.cl

  Log Message:
  -----------
  [OpenCL] Fix address space for implicit conversion (PR43145)

Clang was creating a DerivedToBase ImplicitCastExpr that was also
casting between address spaces as part of the second step in the
standard conversion sequence.  Defer the address space conversion to
the third step in the sequence instead, such that we get a separate
ImplicitCastExpr for the address space conversion.

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




More information about the All-commits mailing list