]> granicus.if.org Git - clang/commit
[OpenCL] An error shall occur if any scalar operand has greater rank than the type...
authorEgor Churaev <egor.churaev@intel.com>
Tue, 30 May 2017 05:32:03 +0000 (05:32 +0000)
committerEgor Churaev <egor.churaev@intel.com>
Tue, 30 May 2017 05:32:03 +0000 (05:32 +0000)
commitf709b9aef75d4a79512a31b213538884c02dd29c
treea560bf5ae14c9df1616a8b04646df3e1069c1683
parentbb482b389e541428d0fa93c244d54d22eef3a384
[OpenCL] An error shall occur if any scalar operand has greater rank than the type of the vector element

Summary:
This is the fix for patch https://reviews.llvm.org/D33353
@uweigand, could you please verify that everything will be good on SystemZ?
I added triple spir-unknown-unknown.
Thank you in advance!

Reviewers: uweigand

Reviewed By: uweigand

Subscribers: yaxunl, cfe-commits, bader, Anastasia, uweigand

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304191 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaOpenCL/arithmetic-conversions.cl [new file with mode: 0644]
test/SemaOpenCL/cond.cl