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 | 610541989a524be452a5674cd3fb78304ce3fa8a (patch) | |
tree | 531d41128c330184f827fe19a030d2f8387f35dd /clang/tools/libclang/CIndexUSRs.cpp | |
parent | 4ea6816247a211e731b7929ca08d682c781e3348 (diff) | |
download | bcm5719-llvm-610541989a524be452a5674cd3fb78304ce3fa8a.tar.gz bcm5719-llvm-610541989a524be452a5674cd3fb78304ce3fa8a.zip |
Add OpenCL samplers as Clang builtin types and check sampler related restrictions.
llvm-svn: 174601
Diffstat (limited to 'clang/tools/libclang/CIndexUSRs.cpp')
-rw-r--r-- | clang/tools/libclang/CIndexUSRs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndexUSRs.cpp b/clang/tools/libclang/CIndexUSRs.cpp index c6f4d7c2487..a911ce5e952 100644 --- a/clang/tools/libclang/CIndexUSRs.cpp +++ b/clang/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: |