summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenOpenCL/byval.cl
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2017-05-23 16:15:53 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2017-05-23 16:15:53 +0000
commitaf3d4db64bd2106383be848c46635059d20077fe (patch)
tree9eb89bbe8c50d37cc54b3e9592bdb9c519815706 /clang/test/CodeGenOpenCL/byval.cl
parentc1dd88c2e6ad183a6d587d3166180703978a825f (diff)
downloadbcm5719-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/byval.cl')
-rw-r--r--clang/test/CodeGenOpenCL/byval.cl1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCL/byval.cl b/clang/test/CodeGenOpenCL/byval.cl
index a7c5adfb79d..90afdfab525 100644
--- a/clang/test/CodeGenOpenCL/byval.cl
+++ b/clang/test/CodeGenOpenCL/byval.cl
@@ -1,3 +1,4 @@
+// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn---opencl %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn---amdgizcl %s | FileCheck %s -check-prefix=AMDGIZ
OpenPOWER on IntegriCloud