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/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.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/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl')
-rw-r--r-- | clang/test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl b/clang/test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl index 061ce2cca2f..952b25dec79 100644 --- a/clang/test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl +++ b/clang/test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl @@ -1,3 +1,4 @@ +// RUN: %clang -cl-std=CL2.0 -emit-llvm -g -O0 -S -target amdgcn-amd-amdhsa -mcpu=fiji -o - %s | FileCheck %s // RUN: %clang -cl-std=CL2.0 -emit-llvm -g -O0 -S -target amdgcn-amd-amdhsa-opencl -mcpu=fiji -o - %s | FileCheck %s // CHECK-DAG: ![[DWARF_ADDRESS_SPACE_NONE:[0-9]+]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !{{[0-9]+}}, size: {{[0-9]+}}) |