[Sema] Allow shifting a scalar operand by a vector operand.
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 15 Sep 2016 22:19:25 +0000 (22:19 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 15 Sep 2016 22:19:25 +0000 (22:19 +0000)
commit819867191f95b7e83cbd42cd1c6a6a5d36c71bd4
tree3eff28a1b49c3f4d48a96443a4c42f4aebec0ce9
parentde3fb6f0b4202e1b3e138f784e6a18f2bbcabd89
[Sema] Allow shifting a scalar operand by a vector operand.

r278501 inadvertently introduced a bug in which it disallowed shifting
scalar operands by vector operands when not compiling for OpenCL. This
commit fixes it.

Patch by Vladimir Yakovlev.

Differential Revision: https://reviews.llvm.org/D24467

llvm-svn: 281669
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/vecshift.c [new file with mode: 0644]
clang/test/Sema/vecshift.c [new file with mode: 0644]