summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorAndrew Savonichev <andrew.savonichev@intel.com>2018-11-08 11:25:41 +0000
committerAndrew Savonichev <andrew.savonichev@intel.com>2018-11-08 11:25:41 +0000
commit3fee3518679bede07c59ffa71b427a9240a09d3c (patch)
tree2c670ebd0c6bb4efd398dc6a422953fd575a1779 /clang/lib/CodeGen/CGExprScalar.cpp
parent5eb3d339d3a433194f174457f7fe5adc5709c7f5 (diff)
downloadbcm5719-llvm-3fee3518679bede07c59ffa71b427a9240a09d3c.tar.gz
bcm5719-llvm-3fee3518679bede07c59ffa71b427a9240a09d3c.zip
[OpenCL] Add support of cl_intel_device_side_avc_motion_estimation extension
Summary: Documentation can be found at https://www.khronos.org/registry/OpenCL/extensions/intel/cl_intel_device_side_avc_motion_estimation.txt Patch by Kristina Bessonova Reviewers: Anastasia, yaxunl, shafik Reviewed By: Anastasia Subscribers: arphaman, sidorovd, AlexeySotkin, krisb, bader, asavonic, cfe-commits Differential Revision: https://reviews.llvm.org/D51484 llvm-svn: 346392
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 519606e8214..0611b9186af 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -2236,7 +2236,8 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
}
case CK_ZeroToOCLOpaqueType: {
- assert((DestTy->isEventT() || DestTy->isQueueT()) &&
+ assert((DestTy->isEventT() || DestTy->isQueueT() ||
+ DestTy->isOCLIntelSubgroupAVCType()) &&
"CK_ZeroToOCLEvent cast on non-event type");
return llvm::Constant::getNullValue(ConvertType(DestTy));
}
OpenPOWER on IntegriCloud