[all-commits] [llvm/llvm-project] f3e6a6: [OpenCL] Handle address space conversions for cons...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Mon Dec 9 03:09:51 PST 2019


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

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/CodeGenOpenCLCXX/address-space-deduction.cl
    A clang/test/CodeGenOpenCLCXX/constexpr.cl

  Log Message:
  -----------
  [OpenCL] Handle address space conversions for constexpr (PR44177)

The AST for the constexpr.cl test contains address space conversion
nodes to cast through the implicit generic address space.  These
caused the evaluator to reject the input as constexpr in C++ for
OpenCL mode, whereas the input was considered constexpr in plain C++
mode as the AST won't have address space cast nodes then.

Fixes PR44177.

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




More information about the All-commits mailing list