[all-commits] [llvm/llvm-project] e95ee3: [SYCL] Prohibit arithmetic operations for incompat...

Alexey Bader via All-commits all-commits at lists.llvm.org
Fri May 22 03:43:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e95ee300c0530158d86430fd82ffabd36262e862
      https://github.com/llvm/llvm-project/commit/e95ee300c0530158d86430fd82ffabd36262e862
  Author: Alexey Bader <alexey.bader at intel.com>
  Date:   2020-05-22 (Fri, 22 May 2020)

  Changed paths:
    M clang/include/clang/AST/Type.h
    M clang/lib/Sema/SemaCast.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/Sema/address_spaces.c
    A clang/test/SemaCXX/address-space-arithmetic.cpp

  Log Message:
  -----------
  [SYCL] Prohibit arithmetic operations for incompatible pointers

Summary:
This change enables OpenCL diagnostics for the pointers annotated with
address space attribute SYCL mode.

Move `isAddressSpaceOverlapping` method from PointerType to QualType.

Reviewers: Anastasia, rjmccall

Reviewed By: rjmccall

Subscribers: rjmccall, jeroen.dobbelaere, Fznamznon, yaxunl, ebevhan, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list