[all-commits] [llvm/llvm-project] 66b112: [OpenCL] Fix reinterpret_cast of vectors

Ole Strøhm via All-commits all-commits at lists.llvm.org
Mon May 17 04:44:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66b112d624a549489fa0af131cf7b632c6181424
      https://github.com/llvm/llvm-project/commit/66b112d624a549489fa0af131cf7b632c6181424
  Author: Ole Strohm <olemarius.strohm at arm.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaCast.cpp
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/CodeGenOpenCLCXX/reinterpret_cast.clcpp
    A clang/test/SemaOpenCLCXX/reinterpret-cast.clcpp

  Log Message:
  -----------
  [OpenCL] Fix reinterpret_cast of vectors

Fixes issues with vectors in reinterpret_cast in C++ for OpenCL
and adds tests to make sure they both pass without errors and
generate the correct code.

Fixes: PR47977

Reviewed By: Anastasia

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




More information about the All-commits mailing list