diff options
| author | Xiuli Pan <xiulipan@outlook.com> | 2016-01-09 12:53:17 +0000 |
|---|---|---|
| committer | Xiuli Pan <xiulipan@outlook.com> | 2016-01-09 12:53:17 +0000 |
| commit | 9c14e282112c0ae8aa4e713494058e6e49335e2e (patch) | |
| tree | c46905749403cad34305b8ea3d6d9673d078282c /clang/lib/AST/ASTImporter.cpp | |
| parent | e1582cec348c4b7f7b90bd0c113992061ebf5ef6 (diff) | |
| download | bcm5719-llvm-9c14e282112c0ae8aa4e713494058e6e49335e2e.tar.gz bcm5719-llvm-9c14e282112c0ae8aa4e713494058e6e49335e2e.zip | |
[OpenCL] Pipe type support
Summary:
Support for OpenCL 2.0 pipe type.
This is a bug-fix version for bader's patch reviews.llvm.org/D14441
Reviewers: pekka.jaaskelainen, Anastasia
Subscribers: bader, Anastasia, cfe-commits
Differential Revision: http://reviews.llvm.org/D15603
llvm-svn: 257254
Diffstat (limited to 'clang/lib/AST/ASTImporter.cpp')
| -rw-r--r-- | clang/lib/AST/ASTImporter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp index 359db1ba81b..916f1081798 100644 --- a/clang/lib/AST/ASTImporter.cpp +++ b/clang/lib/AST/ASTImporter.cpp @@ -878,6 +878,14 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, break; } + case Type::Pipe: { + if (!IsStructurallyEquivalent(Context, + cast<PipeType>(T1)->getElementType(), + cast<PipeType>(T2)->getElementType())) + return false; + break; + } + } // end switch return true; |

