diff options
author | Daniel Jasper <djasper@google.com> | 2016-12-20 10:05:04 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-12-20 10:05:04 +0000 |
commit | 9068938eb0e5c46e506bb26fa8119bca2accf648 (patch) | |
tree | 695bbc51188855590032ff4549acd308c7b062ea /clang/lib/CodeGen/CGExprScalar.cpp | |
parent | 4be5d6744399b9bd365adbce4097cb8380dc1147 (diff) | |
download | bcm5719-llvm-9068938eb0e5c46e506bb26fa8119bca2accf648.tar.gz bcm5719-llvm-9068938eb0e5c46e506bb26fa8119bca2accf648.zip |
Revert "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand."
This reverts commit r290171. It triggers a bunch of warnings, because
the new enumerator isn't handled in all switches. We want a warning-free
build.
Replied on the commit with more details.
llvm-svn: 290173
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 1b85c45cd4b..e9bdbda34aa 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -1593,11 +1593,6 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) { return llvm::Constant::getNullValue(ConvertType(DestTy)); } - case CK_ZeroToOCLQueue: { - assert(DestTy->isQueueT() && "CK_ZeroToOCLQueue cast on non queue_t type"); - return llvm::Constant::getNullValue(ConvertType(DestTy)); - } - case CK_IntToOCLSampler: return CGF.CGM.createOpenCLIntToSamplerConversion(E, CGF);
|