[PATCH] D21678: Fix For pr28288 - Error message in shift of vector values

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 30 09:53:32 PDT 2016


Anastasia added a subscriber: Anastasia.

================
Comment at: llvm/tools/clang/lib/Sema/SemaExpr.cpp:8595
@@ -8594,3 +8594,3 @@
 
-/// \brief Return the resulting type when an OpenCL vector is shifted
+/// \brief Return the resulting type when an vector is shifted
 ///        by a scalar or vector shift amount.
----------------
an vector -> a vector

================
Comment at: llvm/tools/clang/lib/Sema/SemaExpr.cpp:8675
@@ -8678,3 +8674,3 @@
           return InvalidOperands(Loc, LHS, RHS);
-      return checkOpenCLVectorShift(*this, LHS, RHS, Loc, IsCompAssign);
+      return checkVectorShift(*this, LHS, RHS, Loc, IsCompAssign);
     }
----------------
it seems like you don't need this statement as the next one is exactly the same!


http://reviews.llvm.org/D21678





More information about the cfe-commits mailing list