summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-12-20 10:05:04 +0000
committerDaniel Jasper <djasper@google.com>2016-12-20 10:05:04 +0000
commit9068938eb0e5c46e506bb26fa8119bca2accf648 (patch)
tree695bbc51188855590032ff4549acd308c7b062ea /clang/lib/Sema/SemaExpr.cpp
parent4be5d6744399b9bd365adbce4097cb8380dc1147 (diff)
downloadbcm5719-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/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 3c554c9a524..b8883456911 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -9635,18 +9635,6 @@ QualType Sema::CheckCompareOperands(ExprResult &LHS, ExprResult &RHS,
return ResultTy;
}
- if (getLangOpts().OpenCLVersion >= 200) {
- if (LHSIsNull && RHSType->isQueueT()) {
- LHS = ImpCastExprToType(LHS.get(), RHSType, CK_NullToPointer);
- return ResultTy;
- }
-
- if (LHSType->isQueueT() && RHSIsNull) {
- RHS = ImpCastExprToType(RHS.get(), LHSType, CK_NullToPointer);
- return ResultTy;
- }
- }
-
return InvalidOperands(Loc, LHS, RHS);
}
OpenPOWER on IntegriCloud