Index: lib/Sema/SemaExpr.cpp
===================================================================
--- lib/Sema/SemaExpr.cpp	(revision 185052)
+++ lib/Sema/SemaExpr.cpp	(working copy)
@@ -8250,8 +8250,9 @@
     if (PR.isInvalid()) return QualType();
     return CheckIncrementDecrementOperand(S, PR.take(), VK, OpLoc,
                                           IsInc, IsPrefix);
-  } else if (S.getLangOpts().AltiVec && ResType->isVectorType()) {
+  } else if ((S.getLangOpts().AltiVec || S.getLangOpts().OpenCL) && ResType->isVectorType()) {
     // OK! ( C/C++ Language Extensions for CBEA(Version 2.6) 10.3 )
+    // OpenCL spec allows this, see version 1.2 chapter 6.3
   } else {
     S.Diag(OpLoc, diag::err_typecheck_illegal_increment_decrement)
       << ResType << int(IsInc) << Op->getSourceRange();
