]> granicus.if.org Git - clang/commit
Sema: Accept pointers to any address space for builtin functions
authorTom Stellard <thomas.stellard@amd.com>
Tue, 31 Mar 2015 16:39:02 +0000 (16:39 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 31 Mar 2015 16:39:02 +0000 (16:39 +0000)
commit035326683424f8db89e186307ba5a37e1f9bd34f
tree3e9714437d872e98c2ede1908b4dfd0801f017c9
parent9f3f3d9f475d7c0e90132066fd2152fb3a67deb9
Sema: Accept pointers to any address space for builtin functions

As long as they don't have an address space explicitly defined.

This allows builtins with pointer arguments to be used with OpenCL.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233706 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
include/clang/Basic/Builtins.h
lib/Sema/SemaExpr.cpp
test/CodeGenOpenCL/memcpy.cl [new file with mode: 0644]
test/Sema/builtins.cl [new file with mode: 0644]