diff options
author | Guy Benyei <guy.benyei@intel.com> | 2013-02-07 10:55:47 +0000 |
---|---|---|
committer | Guy Benyei <guy.benyei@intel.com> | 2013-02-07 10:55:47 +0000 |
commit | 21f18c4fda167dc5f72feddbd6a7ac1b63200a0d (patch) | |
tree | 80c1b120c64d3066fd4f5799174a16d8ed49eca0 /tools/libclang/CIndexUSRs.cpp | |
parent | f5a6aefa37d73fff3c47953e2c447f074e726a0e (diff) | |
download | clang-21f18c4fda167dc5f72feddbd6a7ac1b63200a0d.tar.gz clang-21f18c4fda167dc5f72feddbd6a7ac1b63200a0d.tar.bz2 clang-21f18c4fda167dc5f72feddbd6a7ac1b63200a0d.tar.xz |
Add OpenCL samplers as Clang builtin types and check sampler related restrictions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndexUSRs.cpp')
-rw-r--r-- | tools/libclang/CIndexUSRs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libclang/CIndexUSRs.cpp b/tools/libclang/CIndexUSRs.cpp index c6f4d7c248..a911ce5e95 100644 --- a/tools/libclang/CIndexUSRs.cpp +++ b/tools/libclang/CIndexUSRs.cpp @@ -596,6 +596,7 @@ void USRGenerator::VisitType(QualType T) { case BuiltinType::OCLImage2dArray: case BuiltinType::OCLImage3d: case BuiltinType::OCLEvent: + case BuiltinType::OCLSampler: IgnoreResults = true; return; case BuiltinType::ObjCId: |