]> granicus.if.org Git - clang/commit
[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)
commit38edf4b1b5192ff6d2232bfd0620ede219b672fd
treebe0fa6be4438580c355b49cc8b5c8a15d17f4286
parent133fae6232b38cbccaef3eb7f066f2b1e7abd14e
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281669 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/CodeGen/vecshift.c [new file with mode: 0644]
test/Sema/vecshift.c [new file with mode: 0644]