diff options
| author | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-05-23 16:15:53 +0000 |
|---|---|---|
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-05-23 16:15:53 +0000 |
| commit | af3d4db64bd2106383be848c46635059d20077fe (patch) | |
| tree | 9eb89bbe8c50d37cc54b3e9592bdb9c519815706 /clang/test/Sema/sizeof-struct-non-zero-as-member.cl | |
| parent | c1dd88c2e6ad183a6d587d3166180703978a825f (diff) | |
| download | bcm5719-llvm-af3d4db64bd2106383be848c46635059d20077fe.tar.gz bcm5719-llvm-af3d4db64bd2106383be848c46635059d20077fe.zip | |
[AMDGPU] Do not require opencl triple environment for OpenCL
A recent change requires opencl triple environment for compiling OpenCL
program, which causes regressions in libclc.
This patch fixes that. Instead of deducing language based on triple
environment, it checks LangOptions.
Differential Revision: https://reviews.llvm.org/D33445
llvm-svn: 303644
Diffstat (limited to 'clang/test/Sema/sizeof-struct-non-zero-as-member.cl')
| -rw-r--r-- | clang/test/Sema/sizeof-struct-non-zero-as-member.cl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/sizeof-struct-non-zero-as-member.cl b/clang/test/Sema/sizeof-struct-non-zero-as-member.cl index cd959735fe8..ecc545b4d89 100644 --- a/clang/test/Sema/sizeof-struct-non-zero-as-member.cl +++ b/clang/test/Sema/sizeof-struct-non-zero-as-member.cl @@ -1,3 +1,4 @@ +// RUN: %clang_cc1 -verify -fsyntax-only -triple amdgcn -target-cpu verde -S -emit-llvm -o - %s // RUN: %clang_cc1 -verify -fsyntax-only -triple amdgcn--opencl -target-cpu verde -S -emit-llvm -o - %s // expected-no-diagnostics |

