diff options
| author | Andrew Savonichev <andrew.savonichev@intel.com> | 2018-10-23 15:19:20 +0000 |
|---|---|---|
| committer | Andrew Savonichev <andrew.savonichev@intel.com> | 2018-10-23 15:19:20 +0000 |
| commit | 3aca0c6080221bacd74735ccb5e8efb0eb156997 (patch) | |
| tree | 606bb9969377c1f4ba8b50af78fa697341e229f3 /lib/CodeGen/CGExpr.cpp | |
| parent | 513ac508c95f7049f54f779d8c82d48d99a00c8b (diff) | |
| download | clang-3aca0c6080221bacd74735ccb5e8efb0eb156997.tar.gz | |
[OpenCL][NFC] Unify ZeroToOCL* cast types
Reviewers: Anastasia, yaxunl
Reviewed By: Anastasia
Subscribers: asavonic, cfe-commits
Differential Revision: https://reviews.llvm.org/D52654
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 55fa455116..c4e06b3af8 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -4254,10 +4254,8 @@ LValue CodeGenFunction::EmitCastLValue(const CastExpr *E) { return MakeAddrLValue(V, E->getType(), LV.getBaseInfo(), CGM.getTBAAInfoForSubobject(LV, E->getType())); } - case CK_ZeroToOCLQueue: - llvm_unreachable("NULL to OpenCL queue lvalue cast is not valid"); - case CK_ZeroToOCLEvent: - llvm_unreachable("NULL to OpenCL event lvalue cast is not valid"); + case CK_ZeroToOCLOpaqueType: + llvm_unreachable("NULL to OpenCL opaque type lvalue cast is not valid"); } llvm_unreachable("Unhandled lvalue cast kind?"); |
